Skip to content

Commit 6e286f8

Browse files
committed
Don't wait for orphan check when attaching to process
Fixes microsoft#186069
1 parent 9a6996a commit 6e286f8

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/vs/platform/terminal/node/ptyService.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -747,11 +747,6 @@ class PersistentTerminalProcess extends Disposable {
747747
}
748748

749749
async attach(): Promise<void> {
750-
// Something wrong happened if the disconnect runner is not canceled, this likely means
751-
// multiple windows attempted to attach.
752-
if (!await this._isOrphaned()) {
753-
throw new Error(`Cannot attach to persistent process "${this._persistentProcessId}", it is already adopted`);
754-
}
755750
if (!this._disconnectRunner1.isScheduled() && !this._disconnectRunner2.isScheduled()) {
756751
this._logService.warn(`Persistent process "${this._persistentProcessId}": Process had no disconnect runners but was an orphan`);
757752
}

0 commit comments

Comments
 (0)