mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
disable gc for now
This commit is contained in:
parent
e7aa17b560
commit
d20d788571
1 changed files with 5 additions and 1 deletions
|
@ -43,7 +43,7 @@ impl AnalysisHostImpl {
|
|||
}
|
||||
pub fn apply_change(&mut self, change: AnalysisChange) {
|
||||
log::info!("apply_change {:?}", change);
|
||||
self.gc_syntax_trees();
|
||||
// self.gc_syntax_trees();
|
||||
|
||||
for (file_id, text) in change.files_changed {
|
||||
self.db
|
||||
|
@ -117,6 +117,10 @@ impl AnalysisHostImpl {
|
|||
}
|
||||
}
|
||||
|
||||
#[allow(unused)]
|
||||
/// Ideally, we should call this function from time to time to collect heavy
|
||||
/// syntax trees. However, if we actually do that, everything is recomputed
|
||||
/// for some reason. Needs investigation.
|
||||
fn gc_syntax_trees(&mut self) {
|
||||
self.db
|
||||
.query(ra_db::SourceFileQuery)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue