From 971ff9ecb537b5a5ea0f987b69d6d30bc7005879 Mon Sep 17 00:00:00 2001 From: Wilfred Hughes Date: Tue, 12 Mar 2024 12:38:30 -0700 Subject: [PATCH] Hide type size information by default --- crates/rust-analyzer/src/config.rs | 2 +- docs/user/generated_config.adoc | 2 +- editors/code/package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/rust-analyzer/src/config.rs b/crates/rust-analyzer/src/config.rs index cbf152465909..511fd363a53b 100644 --- a/crates/rust-analyzer/src/config.rs +++ b/crates/rust-analyzer/src/config.rs @@ -370,7 +370,7 @@ config_data! { /// How to render the align information in a memory layout hover. hover_memoryLayout_alignment: Option = "\"hexadecimal\"", /// Whether to show memory layout data on hover. - hover_memoryLayout_enable: bool = "true", + hover_memoryLayout_enable: bool = "false", /// How to render the niche information in a memory layout hover. hover_memoryLayout_niches: Option = "false", /// How to render the offset information in a memory layout hover. diff --git a/docs/user/generated_config.adoc b/docs/user/generated_config.adoc index 5e782b783111..e018a0098926 100644 --- a/docs/user/generated_config.adoc +++ b/docs/user/generated_config.adoc @@ -500,7 +500,7 @@ Use markdown syntax for links on hover. -- How to render the align information in a memory layout hover. -- -[[rust-analyzer.hover.memoryLayout.enable]]rust-analyzer.hover.memoryLayout.enable (default: `true`):: +[[rust-analyzer.hover.memoryLayout.enable]]rust-analyzer.hover.memoryLayout.enable (default: `false`):: + -- Whether to show memory layout data on hover. diff --git a/editors/code/package.json b/editors/code/package.json index c34b8e25de02..4f21e6245894 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -1089,7 +1089,7 @@ }, "rust-analyzer.hover.memoryLayout.enable": { "markdownDescription": "Whether to show memory layout data on hover.", - "default": true, + "default": false, "type": "boolean" }, "rust-analyzer.hover.memoryLayout.niches": {