Skip to content

Commit 2e6f06a

Browse files
committed
Dynamic elaborative tooltip for status item
1 parent 0b18e9b commit 2e6f06a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/extension/providers/PanelViewProvider.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,17 @@ export default class PopupViewProvider implements vscode.TreeDataProvider<Status
8585
statusBarItem.backgroundColor = undefined;
8686
} else {
8787
let icon;
88+
let tooltip;
8889
if (totalRunningTests > 0 || stressSessions.length > 0) {
8990
icon = "$(loading~spin)";
91+
tooltip = "View currently running sessions";
9092
statusBarItem.backgroundColor = new vscode.ThemeColor("statusBarItem.warningBackground");
9193
} else {
9294
icon = "$(zap)";
9395
statusBarItem.backgroundColor = undefined;
9496
}
9597
statusBarItem.text = `${icon} Fast Olympic Coding: ${parts.join(" ")}`;
98+
statusBarItem.tooltip = tooltip;
9699
}
97100
}
98101

0 commit comments

Comments
 (0)