From 9ff872329add121839e5a3780c1aae16c1dec050 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 20 Jun 2019 16:48:10 +0300 Subject: don' collect macros --- crates/ra_ide_api/src/change.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'crates') diff --git a/crates/ra_ide_api/src/change.rs b/crates/ra_ide_api/src/change.rs index ce03a0f95..895b1e966 100644 --- a/crates/ra_ide_api/src/change.rs +++ b/crates/ra_ide_api/src/change.rs @@ -226,9 +226,12 @@ impl RootDatabase { self.query(ra_db::ParseQuery).sweep(sweep); self.query(hir::db::ParseMacroQuery).sweep(sweep); - self.query(hir::db::MacroDefQuery).sweep(sweep); - self.query(hir::db::MacroArgQuery).sweep(sweep); - self.query(hir::db::MacroExpandQuery).sweep(sweep); + + // Macros do take significant space, but less then the syntax trees + // self.query(hir::db::MacroDefQuery).sweep(sweep); + // self.query(hir::db::MacroArgQuery).sweep(sweep); + // self.query(hir::db::MacroExpandQuery).sweep(sweep); + self.query(hir::db::AstIdMapQuery).sweep(sweep); self.query(hir::db::RawItemsWithSourceMapQuery).sweep(sweep); -- cgit v1.2.3