mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-28 14:03:35 +00:00
Use the warning color when rust-analyzer is stopped
If the rust-analyzer server isn't running, we can't do much. Treat this state as a warning color, so it's more obvious.
This commit is contained in:
parent
c59bd2dc3f
commit
253d68459d
1 changed files with 4 additions and 2 deletions
|
@ -442,8 +442,10 @@ export class Ctx {
|
||||||
statusBar.tooltip.appendMarkdown(
|
statusBar.tooltip.appendMarkdown(
|
||||||
"\n\n[Start server](command:rust-analyzer.startServer)",
|
"\n\n[Start server](command:rust-analyzer.startServer)",
|
||||||
);
|
);
|
||||||
statusBar.color = undefined;
|
statusBar.color = new vscode.ThemeColor("statusBarItem.warningForeground");
|
||||||
statusBar.backgroundColor = undefined;
|
statusBar.backgroundColor = new vscode.ThemeColor(
|
||||||
|
"statusBarItem.warningBackground",
|
||||||
|
);
|
||||||
statusBar.command = "rust-analyzer.startServer";
|
statusBar.command = "rust-analyzer.startServer";
|
||||||
statusBar.text = `$(stop-circle) rust-analyzer`;
|
statusBar.text = `$(stop-circle) rust-analyzer`;
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue