Skip to content

Commit 0b18e9b

Browse files
committed
Use loading icon for status item whenever there's something running
1 parent 4e9c660 commit 0b18e9b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/extension/providers/PanelViewProvider.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,15 @@ export default class PopupViewProvider implements vscode.TreeDataProvider<Status
8484
statusBarItem.text = "$(zap) Fast Olympic Coding";
8585
statusBarItem.backgroundColor = undefined;
8686
} else {
87-
statusBarItem.text = `$(zap) Fast Olympic Coding: ${parts.join(" ")}`;
87+
let icon;
8888
if (totalRunningTests > 0 || stressSessions.length > 0) {
89+
icon = "$(loading~spin)";
8990
statusBarItem.backgroundColor = new vscode.ThemeColor("statusBarItem.warningBackground");
9091
} else {
92+
icon = "$(zap)";
9193
statusBarItem.backgroundColor = undefined;
9294
}
95+
statusBarItem.text = `${icon} Fast Olympic Coding: ${parts.join(" ")}`;
9396
}
9497
}
9598

0 commit comments

Comments
 (0)