Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 98a4c50

Browse files
committed
Rename hover memory layout config key
1 parent 4ed0fa8 commit 98a4c50

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

crates/rust-analyzer/src/config.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ config_data! {
316316
/// Use markdown syntax for links on hover.
317317
hover_links_enable: bool = "true",
318318
/// Whether to show memory layout data on hover.
319-
hover_memory_layout_enable: bool = "true",
319+
hover_memoryLayout_enable: bool = "true",
320320

321321
/// Whether to enforce the import granularity setting for all files. If set to false rust-analyzer will try to keep import styles consistent per file.
322322
imports_granularity_enforce: bool = "false",
@@ -1474,7 +1474,7 @@ impl Config {
14741474
pub fn hover(&self) -> HoverConfig {
14751475
HoverConfig {
14761476
links_in_hover: self.data.hover_links_enable,
1477-
memory_layout: self.data.hover_memory_layout_enable,
1477+
memory_layout: self.data.hover_memoryLayout_enable,
14781478
documentation: self.data.hover_documentation_enable,
14791479
format: {
14801480
let is_markdown = try_or_def!(self

docs/user/generated_config.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ Whether to show keyword hover popups. Only applies when
423423
--
424424
Use markdown syntax for links on hover.
425425
--
426-
[[rust-analyzer.hover.memory.layout.enable]]rust-analyzer.hover.memory.layout.enable (default: `true`)::
426+
[[rust-analyzer.hover.memoryLayout.enable]]rust-analyzer.hover.memoryLayout.enable (default: `true`)::
427427
+
428428
--
429429
Whether to show memory layout data on hover.

editors/code/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -959,7 +959,7 @@
959959
"default": true,
960960
"type": "boolean"
961961
},
962-
"rust-analyzer.hover.memory.layout.enable": {
962+
"rust-analyzer.hover.memoryLayout.enable": {
963963
"markdownDescription": "Whether to show memory layout data on hover.",
964964
"default": true,
965965
"type": "boolean"

0 commit comments

Comments
 (0)