diff --git a/packages/markers/src/browser/problem/problem-contribution.ts b/packages/markers/src/browser/problem/problem-contribution.ts index fa9c8e0f3fd33..323d6983a0150 100644 --- a/packages/markers/src/browser/problem/problem-contribution.ts +++ b/packages/markers/src/browser/problem/problem-contribution.ts @@ -82,7 +82,9 @@ export class ProblemContribution extends AbstractViewContribution protected setStatusBarElement(problemStat: ProblemStat) { this.statusBar.setElement('problem-marker-status', { - text: `$(times-circle) ${problemStat.errors} $(exclamation-triangle) ${problemStat.warnings}`, + text: problemStat.infos <= 0 + ? `$(times-circle) ${problemStat.errors} $(exclamation-triangle) ${problemStat.warnings}` + : `$(times-circle) ${problemStat.errors} $(exclamation-triangle) ${problemStat.warnings} $(info-circle) ${problemStat.infos}`, alignment: StatusBarAlignment.LEFT, priority: 10, command: this.toggleCommand ? this.toggleCommand.id : undefined diff --git a/packages/markers/src/browser/problem/problem-manager.ts b/packages/markers/src/browser/problem/problem-manager.ts index b7670bdc88961..0bae5e8a2417c 100644 --- a/packages/markers/src/browser/problem/problem-manager.ts +++ b/packages/markers/src/browser/problem/problem-manager.ts @@ -24,6 +24,7 @@ import { Diagnostic } from 'vscode-languageserver-types'; export interface ProblemStat { errors: number; warnings: number; + infos: number; } @injectable() @@ -41,8 +42,9 @@ export class ProblemManager extends MarkerManager { const errors = allMarkers.filter(m => m.data.severity === 1).length; const warnings = allMarkers.filter(m => m.data.severity === 2).length; + const infos = allMarkers.filter(m => m.data.severity === 3).length; - return { errors, warnings }; + return { errors, warnings, infos }; } }