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:
@@ -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})`);
|
||||
|
||||
Reference in New Issue
Block a user