diff options
| author | bors <bors@rust-lang.org> | 2022-07-22 22:52:53 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-07-22 22:52:53 +0000 |
| commit | fbb1337eb3fc48d48bc811a5926c6c07e26763ff (patch) | |
| tree | f76e9c124e41794818bf5984796a974019dd1c65 | |
| parent | 8272d2a18dff6de74a687884fb357490ee29450c (diff) | |
| parent | e223d20d9766fd3ce61ab7137cbdae3dd9ea9f83 (diff) | |
| download | rust-fbb1337eb3fc48d48bc811a5926c6c07e26763ff.tar.gz rust-fbb1337eb3fc48d48bc811a5926c6c07e26763ff.zip | |
Auto merge of #12850 - Veykril:display-fix, r=Veykril
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 0dea1b87b2f..26510011d43 100644 --- a/editors/code/src/ctx.ts +++ b/editors/code/src/ctx.ts @@ -98,7 +98,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"); |
