Skip to content

Commit e223d20

Browse files
committed
fix: Fix error tooltip message for VSCode status bar item
1 parent 84a6fac commit e223d20

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

editors/code/src/ctx.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,9 @@ export class Ctx {
9797
icon = "$(warning) ";
9898
break;
9999
case "error":
100-
statusBar.tooltip += "\nClick to reload.";
100+
statusBar.tooltip =
101+
(status.message ? status.message + "\n" : "") + "Click to reload.";
102+
101103
statusBar.command = "rust-analyzer.reloadWorkspace";
102104
statusBar.color = new vscode.ThemeColor("statusBarItem.errorForeground");
103105
statusBar.backgroundColor = new vscode.ThemeColor("statusBarItem.errorBackground");

0 commit comments

Comments
 (0)