Auto merge of #12850 - Veykril:display-fix, r=Veykril

fix: Fix error tooltip message for VSCode status bar item
This commit is contained in:
bors 2022-07-22 22:52:53 +00:00
commit fbb1337eb3

View file

@ -98,7 +98,9 @@ export class Ctx {
icon = "$(warning) "; icon = "$(warning) ";
break; break;
case "error": case "error":
statusBar.tooltip += "\nClick to reload."; statusBar.tooltip =
(status.message ? status.message + "\n" : "") + "Click to reload.";
statusBar.command = "rust-analyzer.reloadWorkspace"; statusBar.command = "rust-analyzer.reloadWorkspace";
statusBar.color = new vscode.ThemeColor("statusBarItem.errorForeground"); statusBar.color = new vscode.ThemeColor("statusBarItem.errorForeground");
statusBar.backgroundColor = new vscode.ThemeColor("statusBarItem.errorBackground"); statusBar.backgroundColor = new vscode.ThemeColor("statusBarItem.errorBackground");