]> git.lizzy.rs Git - rust.git/commitdiff
Add `.enable` suffix
authorJonas Schievink <jonas.schievink@ferrous-systems.com>
Tue, 16 Aug 2022 16:12:15 +0000 (18:12 +0200)
committerJonas Schievink <jonas.schievink@ferrous-systems.com>
Tue, 16 Aug 2022 16:12:15 +0000 (18:12 +0200)
crates/rust-analyzer/src/config.rs
docs/user/generated_config.adoc
editors/code/package.json

index f2fae586024ad4e1759faf0990214dfb59f89ecb..e63cfb163caa934d7e12339dd7e0accc0bf528d9 100644 (file)
@@ -243,10 +243,10 @@ struct ConfigData {
         hover_actions_run_enable: bool             = "true",
 
         /// Whether to show documentation on hover.
-        hover_documentation_enable: bool       = "true",
+        hover_documentation_enable: bool           = "true",
         /// Whether to show keyword hover popups. Only applies when
         /// `#rust-analyzer.hover.documentation.enable#` is set.
-        hover_documentation_keywords: bool     = "true",
+        hover_documentation_keywords_enable: bool  = "true",
         /// Use markdown syntax for links in hover.
         hover_links_enable: bool = "true",
 
@@ -1190,7 +1190,7 @@ pub fn hover(&self) -> HoverConfig {
                     HoverDocFormat::PlainText
                 }
             }),
-            keywords: self.data.hover_documentation_keywords,
+            keywords: self.data.hover_documentation_keywords_enable,
         }
     }
 
index 00a6e3c43c5cbd65d8dd0df5103e6e1324ee4c54..e3dbeec1fbd200d45a105a1db903cc1afd401efc 100644 (file)
@@ -318,7 +318,7 @@ Whether to show `Run` action. Only applies when
 --
 Whether to show documentation on hover.
 --
-[[rust-analyzer.hover.documentation.keywords]]rust-analyzer.hover.documentation.keywords (default: `true`)::
+[[rust-analyzer.hover.documentation.keywords.enable]]rust-analyzer.hover.documentation.keywords.enable (default: `true`)::
 +
 --
 Whether to show keyword hover popups. Only applies when
index 6352e9681107e5d90084680cdcfa5abfc52fd19e..0714b356fe037d2900420cc0407f6544b16a37e1 100644 (file)
                     "default": true,
                     "type": "boolean"
                 },
-                "rust-analyzer.hover.documentation.keywords": {
+                "rust-analyzer.hover.documentation.keywords.enable": {
                     "markdownDescription": "Whether to show keyword hover popups. Only applies when\n`#rust-analyzer.hover.documentation.enable#` is set.",
                     "default": true,
                     "type": "boolean"