diff options
author | Aleksey Kladov <[email protected]> | 2021-04-28 11:06:46 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2021-04-28 11:13:30 +0100 |
commit | 5c1a90103528dd3a93d3d8a2186276e9ebd0d400 (patch) | |
tree | 9e8594b1d76b943a6eb287937db53e87e7f3a956 /crates | |
parent | fb45d2adeccfc6732b702cd8fa2911b385bc15b7 (diff) |
internal: ensure that client and server-side configs are not mixed up
https://github.com/rust-lang/rust/issues/84647 would help big time here.
Diffstat (limited to 'crates')
-rw-r--r-- | crates/rust-analyzer/src/config.rs | 7 |
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`. | ||
30 | config_data! { | 35 | config_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. |