diff options
| author | Wilfred Hughes <wilfred@meta.com> | 2023-08-04 11:07:22 -0700 |
|---|---|---|
| committer | Wilfred Hughes <wilfred@meta.com> | 2023-08-04 11:07:22 -0700 |
| commit | 253d68459de10a1a6f25e0fb8859a7447e67fa34 (patch) | |
| tree | 56042097dacdb1f774c01caca3e955c5ceffcaeb /editors/code | |
| parent | c59bd2dc3f05692f92b5b1c76f3d08d116e63422 (diff) | |
| download | rust-253d68459de10a1a6f25e0fb8859a7447e67fa34.tar.gz rust-253d68459de10a1a6f25e0fb8859a7447e67fa34.zip | |
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.
Diffstat (limited to 'editors/code')
| -rw-r--r-- | editors/code/src/ctx.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/editors/code/src/ctx.ts b/editors/code/src/ctx.ts index 72d8109bc80..720c756a5fa 100644 --- a/editors/code/src/ctx.ts +++ b/editors/code/src/ctx.ts @@ -442,8 +442,10 @@ export class Ctx { statusBar.tooltip.appendMarkdown( "\n\n[Start server](command:rust-analyzer.startServer)", ); - statusBar.color = undefined; - statusBar.backgroundColor = undefined; + statusBar.color = new vscode.ThemeColor("statusBarItem.warningForeground"); + statusBar.backgroundColor = new vscode.ThemeColor( + "statusBarItem.warningBackground", + ); statusBar.command = "rust-analyzer.startServer"; statusBar.text = `$(stop-circle) rust-analyzer`; return; |
