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

@ -138,6 +138,11 @@ impl AnalysisHost {
pub fn new(lru_capacity: Option<usize>) -> AnalysisHost {
AnalysisHost { db: RootDatabase::new(lru_capacity) }
}
pub fn update_lru_capacity(&mut self, lru_capacity: Option<usize>) {
self.db.update_lru_capacity(lru_capacity);
}
/// Returns a snapshot of the current state, which you can query for
/// semantic information.
pub fn analysis(&self) -> Analysis {