Hot reload status bar item shows the flame only

The state is in the icon, the warning colour and the tooltip.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0169iPWwKHZoBTNN9qwXiwqk
This commit is contained in:
max
2026-09-08 13:52:01 +02:00
co-authored by Claude Fable 5.1
parent 0cae24a1f0
commit 9f0036c5d3
2 changed files with 7 additions and 5 deletions
+2 -2
View File
@@ -4,7 +4,7 @@ Startup project and solution configuration in the status bar, with build, debug,
hot reload that actually use them. Built for [DotRush](https://github.com/JaneySprings/DotRush).
```
$(project) MyGame.Editor $(settings-gear) Test | x64 $(debug-alt) $(flame) Hot Reload
$(project) MyGame.Editor $(settings-gear) Test | x64 $(debug-alt) $(flame)
```
- The **project item** shows which `.csproj` is the startup project, and picks another one
@@ -110,7 +110,7 @@ title is the same session.
| Action | How |
| --- | --- |
| Start | The `$(flame) Hot Reload` status bar item, *.NET Solution: Run Startup Project with Hot Reload*, or `Ctrl+Alt+F5` |
| Start | The `$(flame)` status bar item (icon only; the state is in its colour and tooltip), *.NET Solution: Run Startup Project with Hot Reload*, or `Ctrl+Alt+F5` |
| Apply, restart, attach, stop | Click the status bar item while it runs — one menu for all of them |
| Restart the application | Also `Ctrl+R` inside the watch terminal |
+5 -3
View File
@@ -53,12 +53,14 @@ export class HotReloadController implements vscode.Disposable {
return;
}
const debuggerMark = this.link?.busy ? ' $(loading~spin)' : this.link?.attached ? ' $(debug)' : '';
this.item.text = `$(${label.icon}) ${label.text}${debuggerMark}`;
// Icon only: the state shows through the icon and the warning colour, the words
// live in the tooltip. A small debugger mark is added while one is attached.
const debuggerMark = this.link?.busy ? '$(loading~spin)' : this.link?.attached ? '$(debug)' : '';
this.item.text = `$(${label.icon})${debuggerMark}`;
this.item.backgroundColor = label.warn ? new vscode.ThemeColor('statusBarItem.warningBackground') : undefined;
this.item.command = this.session?.running ? 'dotnetSolution.hotReload.menu' : 'dotnetSolution.hotReload.start';
const lines = [label.tooltip];
const lines = [`**${label.text}**`, label.tooltip];
if (this.session) {
const { spec } = this.session;
lines.push('', `Project: \`${spec.projectName}\` (${spec.configuration}|${spec.platform})`);