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);