diff options
Diffstat (limited to 'editors/code')
-rw-r--r-- | editors/code/package.json | 12 | ||||
-rw-r--r-- | editors/code/src/config.ts | 1 | ||||
-rw-r--r-- | editors/code/src/ctx.ts | 1 |
3 files changed, 13 insertions, 1 deletions
diff --git a/editors/code/package.json b/editors/code/package.json index 42a06e137..0f3ed48a0 100644 --- a/editors/code/package.json +++ b/editors/code/package.json | |||
@@ -553,7 +553,7 @@ | |||
553 | } | 553 | } |
554 | }, | 554 | }, |
555 | "rust-analyzer.completion.addCallArgumentSnippets": { | 555 | "rust-analyzer.completion.addCallArgumentSnippets": { |
556 | "markdownDescription": "Whether to add argument snippets when completing functions.", | 556 | "markdownDescription": "Whether to add argument snippets when completing functions.\nOnly applies when `#rust-analyzer.completion.addCallParenthesis#` is set.", |
557 | "default": true, | 557 | "default": true, |
558 | "type": "boolean" | 558 | "type": "boolean" |
559 | }, | 559 | }, |
@@ -617,6 +617,11 @@ | |||
617 | "type": "string" | 617 | "type": "string" |
618 | } | 618 | } |
619 | }, | 619 | }, |
620 | "rust-analyzer.experimental.procAttrMacros": { | ||
621 | "markdownDescription": "Expand attribute macros.", | ||
622 | "default": false, | ||
623 | "type": "boolean" | ||
624 | }, | ||
620 | "rust-analyzer.files.watcher": { | 625 | "rust-analyzer.files.watcher": { |
621 | "markdownDescription": "Controls file watching implementation.", | 626 | "markdownDescription": "Controls file watching implementation.", |
622 | "default": "client", | 627 | "default": "client", |
@@ -655,6 +660,11 @@ | |||
655 | "default": true, | 660 | "default": true, |
656 | "type": "boolean" | 661 | "type": "boolean" |
657 | }, | 662 | }, |
663 | "rust-analyzer.hoverActions.references": { | ||
664 | "markdownDescription": "Whether to show `References` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.", | ||
665 | "default": false, | ||
666 | "type": "boolean" | ||
667 | }, | ||
658 | "rust-analyzer.hoverActions.run": { | 668 | "rust-analyzer.hoverActions.run": { |
659 | "markdownDescription": "Whether to show `Run` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.", | 669 | "markdownDescription": "Whether to show `Run` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.", |
660 | "default": true, | 670 | "default": true, |
diff --git a/editors/code/src/config.ts b/editors/code/src/config.ts index 7200a26f7..2277eeb7e 100644 --- a/editors/code/src/config.ts +++ b/editors/code/src/config.ts | |||
@@ -165,6 +165,7 @@ export class Config { | |||
165 | return { | 165 | return { |
166 | enable: this.get<boolean>("hoverActions.enable"), | 166 | enable: this.get<boolean>("hoverActions.enable"), |
167 | implementations: this.get<boolean>("hoverActions.implementations"), | 167 | implementations: this.get<boolean>("hoverActions.implementations"), |
168 | references: this.get<boolean>("hoverActions.references"), | ||
168 | run: this.get<boolean>("hoverActions.run"), | 169 | run: this.get<boolean>("hoverActions.run"), |
169 | debug: this.get<boolean>("hoverActions.debug"), | 170 | debug: this.get<boolean>("hoverActions.debug"), |
170 | gotoTypeDef: this.get<boolean>("hoverActions.gotoTypeDef"), | 171 | gotoTypeDef: this.get<boolean>("hoverActions.gotoTypeDef"), |
diff --git a/editors/code/src/ctx.ts b/editors/code/src/ctx.ts index cf67dd8cf..2ffd3be6f 100644 --- a/editors/code/src/ctx.ts +++ b/editors/code/src/ctx.ts | |||
@@ -39,6 +39,7 @@ export class Ctx { | |||
39 | extCtx.subscriptions.push(statusBar); | 39 | extCtx.subscriptions.push(statusBar); |
40 | statusBar.text = "rust-analyzer"; | 40 | statusBar.text = "rust-analyzer"; |
41 | statusBar.tooltip = "ready"; | 41 | statusBar.tooltip = "ready"; |
42 | statusBar.command = "rust-analyzer.analyzerStatus"; | ||
42 | statusBar.show(); | 43 | statusBar.show(); |
43 | 44 | ||
44 | const res = new Ctx(config, extCtx, client, serverPath, statusBar); | 45 | const res = new Ctx(config, extCtx, client, serverPath, statusBar); |