mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-14 00:47:18 +00:00
fix: Fix error tooltip message for VSCode status bar item
This commit is contained in:
parent
84a6fac37a
commit
e223d20d97
1 changed files with 3 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue