diff options
Diffstat (limited to 'crates/ra_lsp_server/src/world.rs')
-rw-r--r-- | crates/ra_lsp_server/src/world.rs | 5 |
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); |