diff options
| author | bors <bors@rust-lang.org> | 2023-08-05 12:20:39 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-08-05 12:20:39 +0000 |
| commit | eed86c0d9801a344fce7380217eb7f70fe772303 (patch) | |
| tree | 5304f2d088499d42bd9b428c891180c96afa93f4 | |
| parent | 27e2eea54fbd1edeefa2b47ddd4f552a04b86582 (diff) | |
| parent | 253d68459de10a1a6f25e0fb8859a7447e67fa34 (diff) | |
| download | rust-eed86c0d9801a344fce7380217eb7f70fe772303.tar.gz rust-eed86c0d9801a344fce7380217eb7f70fe772303.zip | |
Auto merge of #15392 - Wilfred:stopped_color, r=lnicola
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.
| -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 b9a73c6c840..16c14ca54f2 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; |
