Skip to content

Commit fbb1337

Browse files
committed
Auto merge of #12850 - Veykril:display-fix, r=Veykril
fix: Fix error tooltip message for VSCode status bar item
2 parents 8272d2a + e223d20 commit fbb1337

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
@@ -98,7 +98,9 @@ export class Ctx {
9898
icon = "$(warning) ";
9999
break;
100100
case "error":
101-
statusBar.tooltip += "\nClick to reload.";
101+
statusBar.tooltip =
102+
(status.message ? status.message + "\n" : "") + "Click to reload.";
103+
102104
statusBar.command = "rust-analyzer.reloadWorkspace";
103105
statusBar.color = new vscode.ThemeColor("statusBarItem.errorForeground");
104106
statusBar.backgroundColor = new vscode.ThemeColor("statusBarItem.errorBackground");

0 commit comments

Comments
 (0)