aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_lsp_server/src/config.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_lsp_server/src/config.rs')
-rw-r--r--crates/ra_lsp_server/src/config.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/crates/ra_lsp_server/src/config.rs b/crates/ra_lsp_server/src/config.rs
index 67942aa41..621f2238c 100644
--- a/crates/ra_lsp_server/src/config.rs
+++ b/crates/ra_lsp_server/src/config.rs
@@ -32,6 +32,10 @@ pub struct ServerConfig {
32 32
33 pub max_inlay_hint_length: Option<usize>, 33 pub max_inlay_hint_length: Option<usize>,
34 34
35 pub cargo_check_enable: bool,
36 pub cargo_check_command: Option<String>,
37 pub cargo_check_args: Vec<String>,
38
35 /// For internal usage to make integrated tests faster. 39 /// For internal usage to make integrated tests faster.
36 #[serde(deserialize_with = "nullable_bool_true")] 40 #[serde(deserialize_with = "nullable_bool_true")]
37 pub with_sysroot: bool, 41 pub with_sysroot: bool,
@@ -51,6 +55,9 @@ impl Default for ServerConfig {
51 use_client_watching: false, 55 use_client_watching: false,
52 lru_capacity: None, 56 lru_capacity: None,
53 max_inlay_hint_length: None, 57 max_inlay_hint_length: None,
58 cargo_check_enable: true,
59 cargo_check_command: None,
60 cargo_check_args: vec![],
54 with_sysroot: true, 61 with_sysroot: true,
55 feature_flags: FxHashMap::default(), 62 feature_flags: FxHashMap::default(),
56 cargo_features: Default::default(), 63 cargo_features: Default::default(),