Fix start cb in CustomExecution2

Fixes #77428
This commit is contained in:
Daniel Imms
2019-07-16 15:10:17 -07:00
parent 1ed9be719c
commit 48e7c6d927
7 changed files with 31 additions and 19 deletions

View File

@@ -588,9 +588,7 @@ export class ExtHostTask implements ExtHostTaskShape {
// Clone the custom execution to keep the original untouched. This is important for multiple runs of the same task.
this._activeCustomExecutions2.set(execution.id, execution2);
this._terminalService.performTerminalIdAction(terminalId, async terminal => {
this._terminalService.attachVirtualProcessToTerminal(terminalId, await execution2.callback());
});
this._terminalService.attachVirtualProcessToTerminal(terminalId, await execution2.callback());
}
// Once a terminal is spun up for the custom execution task this event will be fired.