Skip to content

Commit 8df51ff

Browse files
authored
1 parent e466da6 commit 8df51ff

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/vs/workbench/contrib/markers/browser/markers.contribution.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -677,8 +677,12 @@ class ActivityUpdater extends Disposable implements IWorkbenchContribution {
677677
private updateBadge(): void {
678678
const { errors, warnings, infos } = this.markerService.getStatistics();
679679
const total = errors + warnings + infos;
680-
const message = localize('totalProblems', 'Total {0} Problems', total);
681-
this.activity.value = this.activityService.showViewActivity(Markers.MARKERS_VIEW_ID, { badge: new NumberBadge(total, () => message) });
680+
if (total > 0) {
681+
const message = localize('totalProblems', 'Total {0} Problems', total);
682+
this.activity.value = this.activityService.showViewActivity(Markers.MARKERS_VIEW_ID, { badge: new NumberBadge(total, () => message) });
683+
} else {
684+
this.activity.value = undefined;
685+
}
682686
}
683687
}
684688

0 commit comments

Comments
 (0)