mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 13:48:50 +00:00
fix: Fix incorrect hover actions config keys
This commit is contained in:
parent
3577c44dee
commit
8ac429dad9
5 changed files with 33 additions and 33 deletions
|
@ -221,21 +221,21 @@ config_data! {
|
||||||
highlightRelated_yieldPoints_enable: bool = "true",
|
highlightRelated_yieldPoints_enable: bool = "true",
|
||||||
|
|
||||||
/// Whether to show `Debug` action. Only applies when
|
/// Whether to show `Debug` action. Only applies when
|
||||||
/// `#rust-analyzer.hoverActions.enable#` is set.
|
/// `#rust-analyzer.hover.actions.enable#` is set.
|
||||||
hover_actions_debug_enable: bool = "true",
|
hover_actions_debug_enable: bool = "true",
|
||||||
/// Whether to show HoverActions in Rust files.
|
/// Whether to show HoverActions in Rust files.
|
||||||
hover_actions_enable: bool = "true",
|
hover_actions_enable: bool = "true",
|
||||||
/// Whether to show `Go to Type Definition` action. Only applies when
|
/// Whether to show `Go to Type Definition` action. Only applies when
|
||||||
/// `#rust-analyzer.hoverActions.enable#` is set.
|
/// `#rust-analyzer.hover.actions.enable#` is set.
|
||||||
hover_actions_gotoTypeDef_enable: bool = "true",
|
hover_actions_gotoTypeDef_enable: bool = "true",
|
||||||
/// Whether to show `Implementations` action. Only applies when
|
/// Whether to show `Implementations` action. Only applies when
|
||||||
/// `#rust-analyzer.hoverActions.enable#` is set.
|
/// `#rust-analyzer.hover.actions.enable#` is set.
|
||||||
hover_actions_implementations_enable: bool = "true",
|
hover_actions_implementations_enable: bool = "true",
|
||||||
/// Whether to show `References` action. Only applies when
|
/// Whether to show `References` action. Only applies when
|
||||||
/// `#rust-analyzer.hoverActions.enable#` is set.
|
/// `#rust-analyzer.hover.actions.enable#` is set.
|
||||||
hover_actions_references_enable: bool = "false",
|
hover_actions_references_enable: bool = "false",
|
||||||
/// Whether to show `Run` action. Only applies when
|
/// Whether to show `Run` action. Only applies when
|
||||||
/// `#rust-analyzer.hoverActions.enable#` is set.
|
/// `#rust-analyzer.hover.actions.enable#` is set.
|
||||||
hover_actions_run_enable: bool = "true",
|
hover_actions_run_enable: bool = "true",
|
||||||
|
|
||||||
/// Whether to show documentation on hover.
|
/// Whether to show documentation on hover.
|
||||||
|
|
|
@ -50,12 +50,12 @@ pub(super) fn patch_json_for_outdated_configs(json: &mut Value) {
|
||||||
hover.documentation -> hover.documentation.enable;
|
hover.documentation -> hover.documentation.enable;
|
||||||
hover.linksInHover -> hover.links.enable;
|
hover.linksInHover -> hover.links.enable;
|
||||||
hoverActions.linksInHover -> hover.links.enable;
|
hoverActions.linksInHover -> hover.links.enable;
|
||||||
hoverActions.debug -> hoverActions.debug.enable;
|
hoverActions.debug -> hover.actions.debug.enable;
|
||||||
hoverActions.enable -> hoverActions.enable;
|
hoverActions.enable -> hover.actions.enable;
|
||||||
hoverActions.gotoTypeDef -> hoverActions.gotoTypeDef.enable;
|
hoverActions.gotoTypeDef -> hover.actions.gotoTypeDef.enable;
|
||||||
hoverActions.implementations -> hoverActions.implementations.enable;
|
hoverActions.implementations -> hover.actions.implementations.enable;
|
||||||
hoverActions.references -> hoverActions.references.enable;
|
hoverActions.references -> hover.actions.references.enable;
|
||||||
hoverActions.run -> hoverActions.run.enable;
|
hoverActions.run -> hover.actions.run.enable;
|
||||||
inlayHints.chainingHints -> inlayHints.chainingHints.enable;
|
inlayHints.chainingHints -> inlayHints.chainingHints.enable;
|
||||||
inlayHints.closureReturnTypeHints -> inlayHints.closureReturnTypeHints.enable;
|
inlayHints.closureReturnTypeHints -> inlayHints.closureReturnTypeHints.enable;
|
||||||
inlayHints.hideNamedConstructorHints -> inlayHints.typeHints.hideNamedConstructorHints;
|
inlayHints.hideNamedConstructorHints -> inlayHints.typeHints.hideNamedConstructorHints;
|
||||||
|
|
|
@ -278,7 +278,7 @@ Enables highlighting of all break points for a loop or block context while the c
|
||||||
+
|
+
|
||||||
--
|
--
|
||||||
Whether to show `Debug` action. Only applies when
|
Whether to show `Debug` action. Only applies when
|
||||||
`#rust-analyzer.hoverActions.enable#` is set.
|
`#rust-analyzer.hover.actions.enable#` is set.
|
||||||
--
|
--
|
||||||
[[rust-analyzer.hover.actions.enable]]rust-analyzer.hover.actions.enable (default: `true`)::
|
[[rust-analyzer.hover.actions.enable]]rust-analyzer.hover.actions.enable (default: `true`)::
|
||||||
+
|
+
|
||||||
|
@ -289,25 +289,25 @@ Whether to show HoverActions in Rust files.
|
||||||
+
|
+
|
||||||
--
|
--
|
||||||
Whether to show `Go to Type Definition` action. Only applies when
|
Whether to show `Go to Type Definition` action. Only applies when
|
||||||
`#rust-analyzer.hoverActions.enable#` is set.
|
`#rust-analyzer.hover.actions.enable#` is set.
|
||||||
--
|
--
|
||||||
[[rust-analyzer.hover.actions.implementations.enable]]rust-analyzer.hover.actions.implementations.enable (default: `true`)::
|
[[rust-analyzer.hover.actions.implementations.enable]]rust-analyzer.hover.actions.implementations.enable (default: `true`)::
|
||||||
+
|
+
|
||||||
--
|
--
|
||||||
Whether to show `Implementations` action. Only applies when
|
Whether to show `Implementations` action. Only applies when
|
||||||
`#rust-analyzer.hoverActions.enable#` is set.
|
`#rust-analyzer.hover.actions.enable#` is set.
|
||||||
--
|
--
|
||||||
[[rust-analyzer.hover.actions.references.enable]]rust-analyzer.hover.actions.references.enable (default: `false`)::
|
[[rust-analyzer.hover.actions.references.enable]]rust-analyzer.hover.actions.references.enable (default: `false`)::
|
||||||
+
|
+
|
||||||
--
|
--
|
||||||
Whether to show `References` action. Only applies when
|
Whether to show `References` action. Only applies when
|
||||||
`#rust-analyzer.hoverActions.enable#` is set.
|
`#rust-analyzer.hover.actions.enable#` is set.
|
||||||
--
|
--
|
||||||
[[rust-analyzer.hover.actions.run.enable]]rust-analyzer.hover.actions.run.enable (default: `true`)::
|
[[rust-analyzer.hover.actions.run.enable]]rust-analyzer.hover.actions.run.enable (default: `true`)::
|
||||||
+
|
+
|
||||||
--
|
--
|
||||||
Whether to show `Run` action. Only applies when
|
Whether to show `Run` action. Only applies when
|
||||||
`#rust-analyzer.hoverActions.enable#` is set.
|
`#rust-analyzer.hover.actions.enable#` is set.
|
||||||
--
|
--
|
||||||
[[rust-analyzer.hover.documentation.enable]]rust-analyzer.hover.documentation.enable (default: `true`)::
|
[[rust-analyzer.hover.documentation.enable]]rust-analyzer.hover.documentation.enable (default: `true`)::
|
||||||
+
|
+
|
||||||
|
|
|
@ -698,7 +698,7 @@
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
"rust-analyzer.hover.actions.debug.enable": {
|
"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,
|
"default": true,
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
|
@ -708,22 +708,22 @@
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
"rust-analyzer.hover.actions.gotoTypeDef.enable": {
|
"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,
|
"default": true,
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
"rust-analyzer.hover.actions.implementations.enable": {
|
"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,
|
"default": true,
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
"rust-analyzer.hover.actions.references.enable": {
|
"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,
|
"default": false,
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
"rust-analyzer.hover.actions.run.enable": {
|
"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,
|
"default": true,
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
|
|
|
@ -123,12 +123,12 @@ export class Config {
|
||||||
|
|
||||||
get hoverActions() {
|
get hoverActions() {
|
||||||
return {
|
return {
|
||||||
enable: this.get<boolean>("hoverActions.enable"),
|
enable: this.get<boolean>("hover.actions.enable"),
|
||||||
implementations: this.get<boolean>("hoverActions.implementations.enable"),
|
implementations: this.get<boolean>("hover.actions.implementations.enable"),
|
||||||
references: this.get<boolean>("hoverActions.references.enable"),
|
references: this.get<boolean>("hover.actions.references.enable"),
|
||||||
run: this.get<boolean>("hoverActions.run.enable"),
|
run: this.get<boolean>("hover.actions.run.enable"),
|
||||||
debug: this.get<boolean>("hoverActions.debug.enable"),
|
debug: this.get<boolean>("hover.actions.debug.enable"),
|
||||||
gotoTypeDef: this.get<boolean>("hoverActions.gotoTypeDef.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.documentation", "hover.documentation.enable",],
|
||||||
["hover.linksInHover", "hover.links.enable",],
|
["hover.linksInHover", "hover.links.enable",],
|
||||||
["hoverActions.linksInHover", "hover.links.enable",],
|
["hoverActions.linksInHover", "hover.links.enable",],
|
||||||
["hoverActions.debug", "hoverActions.debug.enable",],
|
["hoverActions.debug", "hover.actions.debug.enable",],
|
||||||
["hoverActions.enable", "hoverActions.enable.enable",],
|
["hoverActions.enable", "hover.actions.enable.enable",],
|
||||||
["hoverActions.gotoTypeDef", "hoverActions.gotoTypeDef.enable",],
|
["hoverActions.gotoTypeDef", "hover.actions.gotoTypeDef.enable",],
|
||||||
["hoverActions.implementations", "hoverActions.implementations.enable",],
|
["hoverActions.implementations", "hover.actions.implementations.enable",],
|
||||||
["hoverActions.references", "hoverActions.references.enable",],
|
["hoverActions.references", "hover.actions.references.enable",],
|
||||||
["hoverActions.run", "hoverActions.run.enable",],
|
["hoverActions.run", "hover.actions.run.enable",],
|
||||||
["inlayHints.chainingHints", "inlayHints.chainingHints.enable",],
|
["inlayHints.chainingHints", "inlayHints.chainingHints.enable",],
|
||||||
["inlayHints.closureReturnTypeHints", "inlayHints.closureReturnTypeHints.enable",],
|
["inlayHints.closureReturnTypeHints", "inlayHints.closureReturnTypeHints.enable",],
|
||||||
["inlayHints.hideNamedConstructorHints", "inlayHints.typeHints.hideNamedConstructorHints",],
|
["inlayHints.hideNamedConstructorHints", "inlayHints.typeHints.hideNamedConstructorHints",],
|
||||||
|
|
Loading…
Reference in a new issue