fix: Fix error tooltip message for VSCode status bar item

This commit is contained in:
Lukas Wirth 2022-07-23 00:52:12 +02:00
parent 84a6fac37a
commit e223d20d97

View file

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