Skip to content

Commit

Permalink
Task terminal status tweak
Browse files Browse the repository at this point in the history
Part of #121659
  • Loading branch information
alexr00 committed May 11, 2021
1 parent c144a88 commit 9b422e7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/vs/workbench/contrib/tasks/browser/taskTerminalStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ interface TerminalData {

const TASK_TERMINAL_STATUS_ID = 'task_terminal_status';
const ACTIVE_TASK_STATUS: ITerminalStatus = { id: TASK_TERMINAL_STATUS_ID, icon: Codicon.play, severity: Severity.Info };
const INACTIVE_TASK_STATUS: ITerminalStatus = { id: TASK_TERMINAL_STATUS_ID, icon: Codicon.play, severity: Severity.Info };
const SUCCEEDED_TASK_STATUS: ITerminalStatus = { id: TASK_TERMINAL_STATUS_ID, icon: Codicon.check, severity: Severity.Info };
const FAILED_TASK_STATUS: ITerminalStatus = { id: TASK_TERMINAL_STATUS_ID, icon: Codicon.error, severity: Severity.Warning };

Expand Down Expand Up @@ -76,7 +75,7 @@ export class TaskTerminalStatus extends Disposable {
}
terminalData.terminal.statusList.remove(terminalData.status);
if (terminalData.problemMatcher.numberOfMatches === 0) {
terminalData.terminal.statusList.add(INACTIVE_TASK_STATUS);
terminalData.terminal.statusList.add(SUCCEEDED_TASK_STATUS);
} else {
terminalData.terminal.statusList.add(FAILED_TASK_STATUS);
}
Expand Down

0 comments on commit 9b422e7

Please sign in to comment.