mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-29 06:23:25 +00:00
Auto merge of #12388 - Veykril:statusitem, r=Veykril
internal: Make use of the statusBarItem colors in VSCode Fixes https://github.com/rust-lang/rust-analyzer/issues/7736
This commit is contained in:
commit
92f363059a
1 changed files with 8 additions and 2 deletions
|
@ -86,13 +86,19 @@ export class Ctx {
|
|||
case "warning":
|
||||
this.statusBar.tooltip += "\nClick to reload.";
|
||||
this.statusBar.command = "rust-analyzer.reloadWorkspace";
|
||||
this.statusBar.color = new vscode.ThemeColor("notificationsWarningIcon.foreground");
|
||||
this.statusBar.color = new vscode.ThemeColor("statusBarItem.warningForeground");
|
||||
this.statusBar.backgroundColor = new vscode.ThemeColor(
|
||||
"statusBarItem.warningBackground"
|
||||
);
|
||||
icon = "$(warning) ";
|
||||
break;
|
||||
case "error":
|
||||
this.statusBar.tooltip += "\nClick to reload.";
|
||||
this.statusBar.command = "rust-analyzer.reloadWorkspace";
|
||||
this.statusBar.color = new vscode.ThemeColor("notificationsErrorIcon.foreground");
|
||||
this.statusBar.color = new vscode.ThemeColor("statusBarItem.errorForeground");
|
||||
this.statusBar.backgroundColor = new vscode.ThemeColor(
|
||||
"statusBarItem.errorBackground"
|
||||
);
|
||||
icon = "$(error) ";
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue