mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
Reload only the properties that do not affect vfs
This commit is contained in:
parent
2feaef91bd
commit
332799d914
4 changed files with 89 additions and 60 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue