Unnamed repository; edit this file 'description' to name the repository.
| -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 f2d4737010..254b3b1208 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"); |