aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_lsp_server/src/config.rs
diff options
context:
space:
mode:
authorEmil Lauridsen <[email protected]>2019-12-25 15:50:38 +0000
committerEmil Lauridsen <[email protected]>2019-12-25 16:37:40 +0000
commit6af4bf7a8d27e653d2e6316172fe140871054d27 (patch)
treeb1a3eed872b7659eb5400e5f2e117a0d008052f9 /crates/ra_lsp_server/src/config.rs
parent41a1ec723ce2ea3fa78ae468830f0a77e5658307 (diff)
Configuration plumbing for cargo watcher
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(),