diff --git a/packages/plugin-ext/src/plugin/terminal-ext.ts b/packages/plugin-ext/src/plugin/terminal-ext.ts index d24ab434176a7..3518776245c6e 100644 --- a/packages/plugin-ext/src/plugin/terminal-ext.ts +++ b/packages/plugin-ext/src/plugin/terminal-ext.ts @@ -131,7 +131,8 @@ export class TerminalServiceExtImpl implements TerminalServiceExt { terminal.deferredProcessId = new Deferred(); terminal.deferredProcessId.resolve(processId); } - const pseudoTerminal = this._pseudoTerminals.get(terminalId.toString()); + // Pseudoterminal is keyed on ID + const pseudoTerminal = this._pseudoTerminals.get(id); if (pseudoTerminal) { pseudoTerminal.emitOnOpen(cols, rows); }