Merge pull request #76736 from microsoft/alexr00/terminalVPChanges

Changes to terminal to enable Tasks use of TerminalVirtualProcess
This commit is contained in:
Daniel Imms
2019-07-05 09:49:02 -07:00
committed by GitHub
2 changed files with 11 additions and 6 deletions

View File

@@ -268,8 +268,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