src/vs/workbench/contrib/tasks/browser/taskTerminalStatus.ts/TaskTerminalStatus/eventEnd
class TaskTerminalStatus:	private eventEnd(event: TaskEvent) {
		const terminalData = this.terminalFromEvent(event);
		if (!terminalData) {
			return;
		}

		this.terminalMap.delete(event.__task!);

		terminalData.terminal.statusList.remove(terminalData.status);
		if ((event.exitCode === 0) && (terminalData.problemMatcher.numberOfMatches === 0)) {
			terminalData.terminal.statusList.add(SUCCEEDED_TASK_STATUS);
		} else {
			terminalData.terminal.statusList.add(FAILED_TASK_STATUS);
		}
	}