Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'editors/code/src/ctx.ts')
-rw-r--r--editors/code/src/ctx.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/editors/code/src/ctx.ts b/editors/code/src/ctx.ts
index 904efa4d5e..84d1ad98bd 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":