From ae186be47037e2ac8a2ead1ceb3d5bb1ad1cf5dd Mon Sep 17 00:00:00 2001 From: Megan Rogge Date: Thu, 25 Feb 2021 11:29:22 -0800 Subject: [PATCH] cancel disconnect runner on attach --- src/vs/platform/terminal/node/ptyService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/platform/terminal/node/ptyService.ts b/src/vs/platform/terminal/node/ptyService.ts index cb6e7c02f19..2f70589b672 100644 --- a/src/vs/platform/terminal/node/ptyService.ts +++ b/src/vs/platform/terminal/node/ptyService.ts @@ -96,7 +96,7 @@ export class PtyService extends Disposable implements IPtyService { async attachToProcess(id: number): Promise { try { - this._throwIfNoPty(id); + this._throwIfNoPty(id).attach(); this._logService.trace(`Persistent terminal reconnection "${id}"`); } catch (e) { this._logService.trace(`Persistent terminal reconnection "${id}" failed`, e.message);