src/vs/workbench/contrib/tasks/browser/terminalTaskSystem.ts/TerminalTaskSystem/_removeFromActiveTasks
class TerminalTaskSystem:	private _removeFromActiveTasks(task: Task | string): void {
		const key = typeof task === 'string' ? task : task.getMapKey();
		if (!this._activeTasks[key]) {
			return;
		}
		const taskToRemove = this._activeTasks[key];
		delete this._activeTasks[key];
		this._removeInstances(taskToRemove.task);
	}