mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 05:23:24 +00:00
Rename hover memory layout config key
This commit is contained in:
parent
4ed0fa8414
commit
98a4c5049f
3 changed files with 4 additions and 4 deletions
|
@ -316,7 +316,7 @@ config_data! {
|
||||||
/// Use markdown syntax for links on hover.
|
/// Use markdown syntax for links on hover.
|
||||||
hover_links_enable: bool = "true",
|
hover_links_enable: bool = "true",
|
||||||
/// Whether to show memory layout data on hover.
|
/// Whether to show memory layout data on hover.
|
||||||
hover_memory_layout_enable: bool = "true",
|
hover_memoryLayout_enable: bool = "true",
|
||||||
|
|
||||||
/// 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.
|
/// 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.
|
||||||
imports_granularity_enforce: bool = "false",
|
imports_granularity_enforce: bool = "false",
|
||||||
|
@ -1474,7 +1474,7 @@ impl Config {
|
||||||
pub fn hover(&self) -> HoverConfig {
|
pub fn hover(&self) -> HoverConfig {
|
||||||
HoverConfig {
|
HoverConfig {
|
||||||
links_in_hover: self.data.hover_links_enable,
|
links_in_hover: self.data.hover_links_enable,
|
||||||
memory_layout: self.data.hover_memory_layout_enable,
|
memory_layout: self.data.hover_memoryLayout_enable,
|
||||||
documentation: self.data.hover_documentation_enable,
|
documentation: self.data.hover_documentation_enable,
|
||||||
format: {
|
format: {
|
||||||
let is_markdown = try_or_def!(self
|
let is_markdown = try_or_def!(self
|
||||||
|
|
|
@ -423,7 +423,7 @@ Whether to show keyword hover popups. Only applies when
|
||||||
--
|
--
|
||||||
Use markdown syntax for links on hover.
|
Use markdown syntax for links on hover.
|
||||||
--
|
--
|
||||||
[[rust-analyzer.hover.memory.layout.enable]]rust-analyzer.hover.memory.layout.enable (default: `true`)::
|
[[rust-analyzer.hover.memoryLayout.enable]]rust-analyzer.hover.memoryLayout.enable (default: `true`)::
|
||||||
+
|
+
|
||||||
--
|
--
|
||||||
Whether to show memory layout data on hover.
|
Whether to show memory layout data on hover.
|
||||||
|
|
|
@ -959,7 +959,7 @@
|
||||||
"default": true,
|
"default": true,
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
"rust-analyzer.hover.memory.layout.enable": {
|
"rust-analyzer.hover.memoryLayout.enable": {
|
||||||
"markdownDescription": "Whether to show memory layout data on hover.",
|
"markdownDescription": "Whether to show memory layout data on hover.",
|
||||||
"default": true,
|
"default": true,
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
|
|
Loading…
Reference in a new issue