Reload only the properties that do not affect vfs

This commit is contained in:
Kirill Bulatov
2020-03-20 22:09:23 +02:00
parent 2feaef91bd
commit 332799d914
4 changed files with 89 additions and 60 deletions

View File

@@ -199,6 +199,17 @@ impl WorldState {
}
}
pub fn update_configuration(
&mut self,
lru_capacity: Option<usize>,
options: Options,
feature_flags: FeatureFlags,
) {
self.feature_flags = Arc::new(feature_flags);
self.analysis_host.update_lru_capacity(lru_capacity);
self.options = options;
}
/// Returns a vec of libraries
/// FIXME: better API here
pub fn process_changes(