about summary refs log tree commit diff
path: root/editors/code
diff options
context:
space:
mode:
authorLukas Wirth <lukastw97@gmail.com>2022-05-13 21:17:03 +0200
committerLukas Wirth <lukastw97@gmail.com>2022-05-13 21:17:03 +0200
commit8ac429dad9a28ccbbdbc218b4f06f0eb7b647d5e (patch)
tree9d27aa841016dcd253c2839c387382b29cb9a64b /editors/code
parent3577c44dee95f0b2b5367dd034f5188317be08eb (diff)
downloadrust-8ac429dad9a28ccbbdbc218b4f06f0eb7b647d5e.tar.gz
rust-8ac429dad9a28ccbbdbc218b4f06f0eb7b647d5e.zip
fix: Fix incorrect hover actions config keys
Diffstat (limited to 'editors/code')
-rw-r--r--editors/code/package.json10
-rw-r--r--editors/code/src/config.ts24
2 files changed, 17 insertions, 17 deletions
diff --git a/editors/code/package.json b/editors/code/package.json
index d21d1139d30..62b0f3c0baf 100644
--- a/editors/code/package.json
+++ b/editors/code/package.json
@@ -698,7 +698,7 @@
                     "type": "boolean"
                 },
                 "rust-analyzer.hover.actions.debug.enable": {
-                    "markdownDescription": "Whether to show `Debug` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
+                    "markdownDescription": "Whether to show `Debug` action. Only applies when\n`#rust-analyzer.hover.actions.enable#` is set.",
                     "default": true,
                     "type": "boolean"
                 },
@@ -708,22 +708,22 @@
                     "type": "boolean"
                 },
                 "rust-analyzer.hover.actions.gotoTypeDef.enable": {
-                    "markdownDescription": "Whether to show `Go to Type Definition` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
+                    "markdownDescription": "Whether to show `Go to Type Definition` action. Only applies when\n`#rust-analyzer.hover.actions.enable#` is set.",
                     "default": true,
                     "type": "boolean"
                 },
                 "rust-analyzer.hover.actions.implementations.enable": {
-                    "markdownDescription": "Whether to show `Implementations` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
+                    "markdownDescription": "Whether to show `Implementations` action. Only applies when\n`#rust-analyzer.hover.actions.enable#` is set.",
                     "default": true,
                     "type": "boolean"
                 },
                 "rust-analyzer.hover.actions.references.enable": {
-                    "markdownDescription": "Whether to show `References` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
+                    "markdownDescription": "Whether to show `References` action. Only applies when\n`#rust-analyzer.hover.actions.enable#` is set.",
                     "default": false,
                     "type": "boolean"
                 },
                 "rust-analyzer.hover.actions.run.enable": {
-                    "markdownDescription": "Whether to show `Run` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
+                    "markdownDescription": "Whether to show `Run` action. Only applies when\n`#rust-analyzer.hover.actions.enable#` is set.",
                     "default": true,
                     "type": "boolean"
                 },
diff --git a/editors/code/src/config.ts b/editors/code/src/config.ts
index d34e82a1a6e..952a88acff7 100644
--- a/editors/code/src/config.ts
+++ b/editors/code/src/config.ts
@@ -123,12 +123,12 @@ export class Config {
 
     get hoverActions() {
         return {
-            enable: this.get<boolean>("hoverActions.enable"),
-            implementations: this.get<boolean>("hoverActions.implementations.enable"),
-            references: this.get<boolean>("hoverActions.references.enable"),
-            run: this.get<boolean>("hoverActions.run.enable"),
-            debug: this.get<boolean>("hoverActions.debug.enable"),
-            gotoTypeDef: this.get<boolean>("hoverActions.gotoTypeDef.enable"),
+            enable: this.get<boolean>("hover.actions.enable"),
+            implementations: this.get<boolean>("hover.actions.implementations.enable"),
+            references: this.get<boolean>("hover.actions.references.enable"),
+            run: this.get<boolean>("hover.actions.run.enable"),
+            debug: this.get<boolean>("hover.actions.debug.enable"),
+            gotoTypeDef: this.get<boolean>("hover.actions.gotoTypeDef.enable"),
         };
     }
 
@@ -164,12 +164,12 @@ export async function updateConfig(config: vscode.WorkspaceConfiguration) {
         ["hover.documentation", "hover.documentation.enable",],
         ["hover.linksInHover", "hover.links.enable",],
         ["hoverActions.linksInHover", "hover.links.enable",],
-        ["hoverActions.debug", "hoverActions.debug.enable",],
-        ["hoverActions.enable", "hoverActions.enable.enable",],
-        ["hoverActions.gotoTypeDef", "hoverActions.gotoTypeDef.enable",],
-        ["hoverActions.implementations", "hoverActions.implementations.enable",],
-        ["hoverActions.references", "hoverActions.references.enable",],
-        ["hoverActions.run", "hoverActions.run.enable",],
+        ["hoverActions.debug", "hover.actions.debug.enable",],
+        ["hoverActions.enable", "hover.actions.enable.enable",],
+        ["hoverActions.gotoTypeDef", "hover.actions.gotoTypeDef.enable",],
+        ["hoverActions.implementations", "hover.actions.implementations.enable",],
+        ["hoverActions.references", "hover.actions.references.enable",],
+        ["hoverActions.run", "hover.actions.run.enable",],
         ["inlayHints.chainingHints", "inlayHints.chainingHints.enable",],
         ["inlayHints.closureReturnTypeHints", "inlayHints.closureReturnTypeHints.enable",],
         ["inlayHints.hideNamedConstructorHints", "inlayHints.typeHints.hideNamedConstructorHints",],