aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_lsp_server/src/world.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/world.rs
parent41a1ec723ce2ea3fa78ae468830f0a77e5658307 (diff)
Configuration plumbing for cargo watcher
Diffstat (limited to 'crates/ra_lsp_server/src/world.rs')
-rw-r--r--crates/ra_lsp_server/src/world.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/crates/ra_lsp_server/src/world.rs b/crates/ra_lsp_server/src/world.rs
index 8e9380ca0..235eb199d 100644
--- a/crates/ra_lsp_server/src/world.rs
+++ b/crates/ra_lsp_server/src/world.rs
@@ -35,6 +35,9 @@ pub struct Options {
35 pub supports_location_link: bool, 35 pub supports_location_link: bool,
36 pub line_folding_only: bool, 36 pub line_folding_only: bool,
37 pub max_inlay_hint_length: Option<usize>, 37 pub max_inlay_hint_length: Option<usize>,
38 pub cargo_check_enable: bool,
39 pub cargo_check_command: Option<String>,
40 pub cargo_check_args: Vec<String>,
38} 41}
39 42
40/// `WorldState` is the primary mutable state of the language server 43/// `WorldState` is the primary mutable state of the language server
@@ -131,7 +134,7 @@ impl WorldState {
131 change.set_crate_graph(crate_graph); 134 change.set_crate_graph(crate_graph);
132 135
133 // FIXME: Figure out the multi-workspace situation 136 // FIXME: Figure out the multi-workspace situation
134 let check_watcher = CheckWatcher::new(folder_roots.first().cloned().unwrap()); 137 let check_watcher = CheckWatcher::new(&options, folder_roots.first().cloned().unwrap());
135 138
136 let mut analysis_host = AnalysisHost::new(lru_capacity, feature_flags); 139 let mut analysis_host = AnalysisHost::new(lru_capacity, feature_flags);
137 analysis_host.apply_change(change); 140 analysis_host.apply_change(change);