From 5c1a90103528dd3a93d3d8a2186276e9ebd0d400 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 28 Apr 2021 13:06:46 +0300 Subject: 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. --- crates/rust-analyzer/src/config.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'crates') 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::{ line_index::OffsetEncoding, lsp_ext::supports_utf8, }; +// Defines the server-side configuration of the rust-analyzer. We generate +// *parts* of VS Code's `package.json` config from this. +// +// However, editor specific config, which the server doesn't know about, should +// be specified directly in `package.json`. config_data! { struct ConfigData { /// The strategy to use when inserting new imports or merging imports. @@ -145,8 +150,6 @@ config_data! { inlayHints_parameterHints: bool = "true", /// Whether to show inlay type hints for variables. inlayHints_typeHints: bool = "true", - /// Whether inlay hints font size should be smaller than editor's font size. - inlayHints_smallerHints: bool = "true", /// Whether to show `Debug` lens. Only applies when /// `#rust-analyzer.lens.enable#` is set. -- cgit v1.2.3