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