aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
Diffstat (limited to 'crates')
-rw-r--r--crates/rust-analyzer/src/config.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/crates/rust-analyzer/src/config.rs b/crates/rust-analyzer/src/config.rs
index 28bbbce19..8879a9161 100644
--- a/crates/rust-analyzer/src/config.rs
+++ b/crates/rust-analyzer/src/config.rs
@@ -27,6 +27,11 @@ use crate::{
27 line_index::OffsetEncoding, lsp_ext::supports_utf8, 27 line_index::OffsetEncoding, lsp_ext::supports_utf8,
28}; 28};
29 29
30// Defines the server-side configuration of the rust-analyzer. We generate
31// *parts* of VS Code's `package.json` config from this.
32//
33// However, editor specific config, which the server doesn't know about, should
34// be specified directly in `package.json`.
30config_data! { 35config_data! {
31 struct ConfigData { 36 struct ConfigData {
32 /// The strategy to use when inserting new imports or merging imports. 37 /// The strategy to use when inserting new imports or merging imports.
@@ -145,8 +150,6 @@ config_data! {
145 inlayHints_parameterHints: bool = "true", 150 inlayHints_parameterHints: bool = "true",
146 /// Whether to show inlay type hints for variables. 151 /// Whether to show inlay type hints for variables.
147 inlayHints_typeHints: bool = "true", 152 inlayHints_typeHints: bool = "true",
148 /// Whether inlay hints font size should be smaller than editor's font size.
149 inlayHints_smallerHints: bool = "true",
150 153
151 /// Whether to show `Debug` lens. Only applies when 154 /// Whether to show `Debug` lens. Only applies when
152 /// `#rust-analyzer.lens.enable#` is set. 155 /// `#rust-analyzer.lens.enable#` is set.