diff --git a/packages/messages/src/browser/notifications-contribution.ts b/packages/messages/src/browser/notifications-contribution.ts index 50c5cdd71d27b..4368d84502283 100644 --- a/packages/messages/src/browser/notifications-contribution.ts +++ b/packages/messages/src/browser/notifications-contribution.ts @@ -51,11 +51,20 @@ export class NotificationsContribution implements FrontendApplicationContributio text: this.getStatusBarItemText(count), alignment: StatusBarAlignment.RIGHT, priority: -900, - command: NotificationsCommands.TOGGLE.id + command: NotificationsCommands.TOGGLE.id, + tooltip: this.getStatusBarItemTooltip(count) }); } protected getStatusBarItemText(count: number): string { - return `$(bell) ${count ? ` ${count}` : '' }`; + return `$(bell) ${count ? ` ${count}` : ''}`; + } + protected getStatusBarItemTooltip(count: number): string { + if (this.manager.centerVisible) { + return 'Hide Notifications'; + } + return count === 0 + ? 'No Notifications' + : count === 1 ? '1 Notification' : `${count} Notifications`; } registerCommands(commands: CommandRegistry): void {