Changes to terminal to enable Tasks use of TerminalVirtualProcess

This commit is contained in:
Alex Ross
2019-07-05 17:57:03 +02:00
parent 4c7e29993d
commit 65f53d53b1
2 changed files with 15 additions and 8 deletions

View File

@@ -262,8 +262,13 @@ export class MainThreadTerminalService implements MainThreadTerminalServiceShape
}
private _onTerminalRequestVirtualProcess(proxy: ITerminalProcessExtHostProxy): void {
this._terminalProcessesReady[proxy.terminalId](proxy);
delete this._terminalProcessesReady[proxy.terminalId];
const ready = this._terminalProcessesReady[proxy.terminalId];
if (!ready) {
this._terminalProcesses[proxy.terminalId] = Promise.resolve(proxy);
} else {
ready(proxy);
delete this._terminalProcessesReady[proxy.terminalId];
}
// Note that onReisze is not being listened to here as it needs to fire when max dimensions
// change, excluding the dimension override