From cc6d174f7c7a7d1735b9623cfedb9515f87f9432 Mon Sep 17 00:00:00 2001 From: Alex Ross Date: Fri, 11 Oct 2019 12:35:46 +0200 Subject: [PATCH] Add task end fire so that executions are cleaned up Fixes #81777 --- 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 bf87275c1cc..a5e45fe11e9 100644 --- a/src/vs/workbench/contrib/tasks/browser/terminalTaskSystem.ts +++ b/src/vs/workbench/contrib/tasks/browser/terminalTaskSystem.ts @@ -488,6 +488,8 @@ export class TerminalTaskSystem implements ITaskSystem { this.currentTask.resolvedVariables = resolvedVariables; return this.executeInTerminal(task, trigger, new VariableResolver(workspaceFolder, systemInfo, resolvedVariables.variables, this.configurationResolverService), workspaceFolder); } else { + // Allows the taskExecutions array to be updated in the extension host + this._onDidStateChange.fire(TaskEvent.create(TaskEventKind.End, task)); return Promise.resolve({ exitCode: 0 }); } }, reason => { -- GitLab