diff --git a/README.md b/README.md index 3a40072..2b449e0 100644 --- a/README.md +++ b/README.md @@ -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 | diff --git a/src/hotreload/controller.ts b/src/hotreload/controller.ts index a7a7756..cc97f8f 100644 --- a/src/hotreload/controller.ts +++ b/src/hotreload/controller.ts @@ -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})`);