mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 04:49:35 +00:00
parent
327c71fdef
commit
77e1ce431a
|
@ -1327,10 +1327,8 @@ export class TerminalTaskSystem extends Disposable implements ITaskSystem {
|
|||
return [terminalToReuse.terminal, commandExecutable, undefined];
|
||||
}
|
||||
|
||||
await this.terminalCreationQueue;
|
||||
const createTerminalPromise = this.doCreateTerminal(group, launchConfigs);
|
||||
this.terminalCreationQueue = createTerminalPromise;
|
||||
const result: ITerminalInstance = await createTerminalPromise;
|
||||
this.terminalCreationQueue = this.terminalCreationQueue.then(() => this.doCreateTerminal(group, launchConfigs!));
|
||||
const result: ITerminalInstance = (await this.terminalCreationQueue)!;
|
||||
|
||||
const terminalKey = result.instanceId.toString();
|
||||
result.onDisposed((terminal) => {
|
||||
|
|
Loading…
Reference in a new issue