mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-01 07:48:45 +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":
|
case "warning":
|
||||||
this.statusBar.tooltip += "\nClick to reload.";
|
this.statusBar.tooltip += "\nClick to reload.";
|
||||||
this.statusBar.command = "rust-analyzer.reloadWorkspace";
|
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) ";
|
icon = "$(warning) ";
|
||||||
break;
|
break;
|
||||||
case "error":
|
case "error":
|
||||||
this.statusBar.tooltip += "\nClick to reload.";
|
this.statusBar.tooltip += "\nClick to reload.";
|
||||||
this.statusBar.command = "rust-analyzer.reloadWorkspace";
|
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) ";
|
icon = "$(error) ";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue