diff options
| author | Lukas Wirth <lukastw97@gmail.com> | 2022-07-23 00:52:12 +0200 |
|---|---|---|
| committer | Lukas Wirth <lukastw97@gmail.com> | 2022-07-23 00:52:12 +0200 |
| commit | e223d20d9766fd3ce61ab7137cbdae3dd9ea9f83 (patch) | |
| tree | f6052233044f3d31aebf669ddf40194929c57ff7 | |
| parent | 84a6fac37ad61ff512993ee64b47deff9a52c560 (diff) | |
| download | rust-e223d20d9766fd3ce61ab7137cbdae3dd9ea9f83.tar.gz rust-e223d20d9766fd3ce61ab7137cbdae3dd9ea9f83.zip | |
fix: Fix error tooltip message for VSCode status bar item
| -rw-r--r-- | editors/code/src/ctx.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/editors/code/src/ctx.ts b/editors/code/src/ctx.ts index f2d47370105..254b3b1208e 100644 --- a/editors/code/src/ctx.ts +++ b/editors/code/src/ctx.ts @@ -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"); |
