aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_analysis/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_analysis/src')
-rw-r--r--crates/ra_analysis/src/imp.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/crates/ra_analysis/src/imp.rs b/crates/ra_analysis/src/imp.rs
index 9e441ca79..2d00d23be 100644
--- a/crates/ra_analysis/src/imp.rs
+++ b/crates/ra_analysis/src/imp.rs
@@ -23,7 +23,7 @@ use hir::{
23use crate::{ 23use crate::{
24 completion::{completions, CompletionItem}, 24 completion::{completions, CompletionItem},
25 db, 25 db,
26 symbol_index::{SymbolIndex, SymbolsDatabase}, 26 symbol_index::{SymbolIndex, SymbolsDatabase, LibrarySymbolsQuery},
27 AnalysisChange, RootChange, Cancelable, CrateId, Diagnostic, FileId, 27 AnalysisChange, RootChange, Cancelable, CrateId, Diagnostic, FileId,
28 FileSystemEdit, FilePosition, Query, SourceChange, SourceFileNodeEdit, 28 FileSystemEdit, FilePosition, Query, SourceChange, SourceFileNodeEdit,
29 ReferenceResolution, 29 ReferenceResolution,
@@ -71,6 +71,9 @@ impl AnalysisHostImpl {
71 self.db 71 self.db
72 .query_mut(ra_db::SourceRootQuery) 72 .query_mut(ra_db::SourceRootQuery)
73 .set(library.root_id, Default::default()); 73 .set(library.root_id, Default::default());
74 self.db
75 .query_mut(LibrarySymbolsQuery)
76 .set(library.root_id, Arc::new(library.symbol_index));
74 self.apply_root_change(library.root_id, library.root_change); 77 self.apply_root_change(library.root_id, library.root_change);
75 } 78 }
76 self.db 79 self.db