aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-12-18 22:10:03 +0000
committerAleksey Kladov <[email protected]>2018-12-18 22:10:03 +0000
commitd20d788571b9d1b5f4b9a386b8ca82ee0b278c17 (patch)
tree2a10781f93c8e994d64d331b1c0d25ce84529041 /crates
parente7aa17b5605bdf393c76549ff1507110a94b4cca (diff)
disable gc for now
Diffstat (limited to 'crates')
-rw-r--r--crates/ra_analysis/src/imp.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/crates/ra_analysis/src/imp.rs b/crates/ra_analysis/src/imp.rs
index 843f28d05..0de0e2645 100644
--- a/crates/ra_analysis/src/imp.rs
+++ b/crates/ra_analysis/src/imp.rs
@@ -43,7 +43,7 @@ impl AnalysisHostImpl {
43 } 43 }
44 pub fn apply_change(&mut self, change: AnalysisChange) { 44 pub fn apply_change(&mut self, change: AnalysisChange) {
45 log::info!("apply_change {:?}", change); 45 log::info!("apply_change {:?}", change);
46 self.gc_syntax_trees(); 46 // self.gc_syntax_trees();
47 47
48 for (file_id, text) in change.files_changed { 48 for (file_id, text) in change.files_changed {
49 self.db 49 self.db
@@ -117,6 +117,10 @@ impl AnalysisHostImpl {
117 } 117 }
118 } 118 }
119 119
120 #[allow(unused)]
121 /// Ideally, we should call this function from time to time to collect heavy
122 /// syntax trees. However, if we actually do that, everything is recomputed
123 /// for some reason. Needs investigation.
120 fn gc_syntax_trees(&mut self) { 124 fn gc_syntax_trees(&mut self) {
121 self.db 125 self.db
122 .query(ra_db::SourceFileQuery) 126 .query(ra_db::SourceFileQuery)