From 3bed084d432840a7bc40d378e5b354e60ccc0067 Mon Sep 17 00:00:00 2001 From: meganrogge Date: Fri, 15 Jul 2022 07:22:11 -0700 Subject: [PATCH] set to udf after --- src/vs/workbench/contrib/tasks/browser/terminalTaskSystem.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/vs/workbench/contrib/tasks/browser/terminalTaskSystem.ts b/src/vs/workbench/contrib/tasks/browser/terminalTaskSystem.ts index 0499c4cd0b599..22c53792466fd 100644 --- a/src/vs/workbench/contrib/tasks/browser/terminalTaskSystem.ts +++ b/src/vs/workbench/contrib/tasks/browser/terminalTaskSystem.ts @@ -882,6 +882,7 @@ export class TerminalTaskSystem extends Disposable implements ITaskSystem { watchingProblemMatcher.aboutToStart(); let delayer: Async.Delayer | undefined = undefined; [terminal, error] = this._terminalForTask ? [this._terminalForTask, undefined] : await this._createTerminal(task, resolver, workspaceFolder); + this._terminalForTask = undefined; if (error) { return Promise.reject(new Error((error).message)); @@ -964,6 +965,7 @@ export class TerminalTaskSystem extends Disposable implements ITaskSystem { }); } else { [terminal, error] = this._terminalForTask ? [this._terminalForTask, undefined] : await this._createTerminal(task, resolver, workspaceFolder); + this._terminalForTask = undefined; if (error) { return Promise.reject(new Error((error).message));