aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
Diffstat (limited to 'crates')
-rw-r--r--crates/ra_analysis/src/imp.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/crates/ra_analysis/src/imp.rs b/crates/ra_analysis/src/imp.rs
index 90446c838..3557bb5cc 100644
--- a/crates/ra_analysis/src/imp.rs
+++ b/crates/ra_analysis/src/imp.rs
@@ -18,8 +18,7 @@ use salsa::{ParallelDatabase, Database};
18use crate::{ 18use crate::{
19 AnalysisChange, 19 AnalysisChange,
20 db::{ 20 db::{
21 self, SyntaxDatabase, 21 self, SyntaxDatabase, FileSyntaxQuery,
22
23 }, 22 },
24 input::{SourceRootId, FilesDatabase, SourceRoot, WORKSPACE}, 23 input::{SourceRootId, FilesDatabase, SourceRoot, WORKSPACE},
25 descriptors::module::{ModulesDatabase, ModuleTree, Problem}, 24 descriptors::module::{ModulesDatabase, ModuleTree, Problem},
@@ -194,6 +193,8 @@ impl AnalysisImpl {
194 .filter_map(|it| it.ok()) 193 .filter_map(|it| it.ok())
195 .collect() 194 .collect()
196 }; 195 };
196 self.db.query(FileSyntaxQuery)
197 .sweep(salsa::SweepStrategy::default().discard_values());
197 Ok(query.search(&buf)) 198 Ok(query.search(&buf))
198 } 199 }
199 fn module_tree(&self, file_id: FileId) -> Cancelable<Arc<ModuleTree>> { 200 fn module_tree(&self, file_id: FileId) -> Cancelable<Arc<ModuleTree>> {