about summary refs log tree commit diff
path: root/editors/code
diff options
context:
space:
mode:
authorLukas Wirth <lukastw97@gmail.com>2022-06-15 14:29:13 +0200
committerLukas Wirth <lukastw97@gmail.com>2022-06-15 14:29:13 +0200
commit664a751f2b5abc3cc0fed5bb21d243e7e5bc31b8 (patch)
tree391e62b019480aa711078db98be2fdee2b278b0f /editors/code
parent002447d6cbdb19b80c998792486b655f0bd53365 (diff)
downloadrust-664a751f2b5abc3cc0fed5bb21d243e7e5bc31b8.tar.gz
rust-664a751f2b5abc3cc0fed5bb21d243e7e5bc31b8.zip
fix: Clear proc-macro changed flag when reloading workspace
Diffstat (limited to 'editors/code')
-rw-r--r--editors/code/src/ctx.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/editors/code/src/ctx.ts b/editors/code/src/ctx.ts
index 51781b4205c..10063470f79 100644
--- a/editors/code/src/ctx.ts
+++ b/editors/code/src/ctx.ts
@@ -77,10 +77,10 @@ export class Ctx {
     }
 
     setServerStatus(status: ServerStatusParams) {
-        this.statusBar.tooltip = status.message ?? "Ready";
         let icon = "";
         switch (status.health) {
             case "ok":
+                this.statusBar.tooltip = status.message ?? "Ready";
                 this.statusBar.command = undefined;
                 this.statusBar.color = undefined;
                 this.statusBar.backgroundColor = undefined;
@@ -105,7 +105,7 @@ export class Ctx {
                 break;
         }
         if (!status.quiescent) icon = "$(sync~spin) ";
-        this.statusBar.text = `${icon} rust-analyzer`;
+        this.statusBar.text = `${icon}rust-analyzer`;
     }
 
     pushCleanup(d: Disposable) {