diff options
| author | Laurențiu Nicola <lnicola@dend.ro> | 2023-11-08 08:15:03 +0200 |
|---|---|---|
| committer | Laurențiu Nicola <lnicola@dend.ro> | 2023-11-08 08:15:03 +0200 |
| commit | d1d111d09edcab2c87bc59ea69989d708e6bfa2d (patch) | |
| tree | 4ebb37ca611538b9100069e4639e549822892e89 /editors/code/src/ctx.ts | |
| parent | 6eaf3f8bb2824f7cb4c9b8271ea3e59b008a663e (diff) | |
| download | rust-d1d111d09edcab2c87bc59ea69989d708e6bfa2d.tar.gz rust-d1d111d09edcab2c87bc59ea69989d708e6bfa2d.zip | |
Merge commit '3b7c7f97e4a7bb253a8d398ee4f8346f6cf2817b' into sync-from-ra
Diffstat (limited to 'editors/code/src/ctx.ts')
| -rw-r--r-- | editors/code/src/ctx.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/editors/code/src/ctx.ts b/editors/code/src/ctx.ts index 904efa4d5eb..84d1ad98bd9 100644 --- a/editors/code/src/ctx.ts +++ b/editors/code/src/ctx.ts @@ -400,7 +400,11 @@ export class Ctx { statusBar.tooltip.appendText(status.message ?? "Ready"); statusBar.color = undefined; statusBar.backgroundColor = undefined; - statusBar.command = "rust-analyzer.openLogs"; + if (this.config.statusBarClickAction === "stopServer") { + statusBar.command = "rust-analyzer.stopServer"; + } else { + statusBar.command = "rust-analyzer.openLogs"; + } this.dependencies?.refresh(); break; case "warning": |
