diff options
author | Aleksey Kladov <[email protected]> | 2018-12-20 09:02:57 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-12-20 09:15:38 +0000 |
commit | 97812c192a2f650520a6b73f9e3d49919515947d (patch) | |
tree | a7e7f80e7a19ed5523a8f174c4a81854e600e2ae /crates/ra_analysis | |
parent | 7a6f5164f39f9b66640d3c0778410588add486c8 (diff) |
Restore library symbols
Diffstat (limited to 'crates/ra_analysis')
-rw-r--r-- | crates/ra_analysis/src/imp.rs | 5 |
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::{ | |||
23 | use crate::{ | 23 | use 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 |