From 97812c192a2f650520a6b73f9e3d49919515947d Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 20 Dec 2018 12:02:57 +0300 Subject: Restore library symbols --- crates/ra_analysis/src/imp.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'crates/ra_analysis/src') 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::{ use crate::{ completion::{completions, CompletionItem}, db, - symbol_index::{SymbolIndex, SymbolsDatabase}, + symbol_index::{SymbolIndex, SymbolsDatabase, LibrarySymbolsQuery}, AnalysisChange, RootChange, Cancelable, CrateId, Diagnostic, FileId, FileSystemEdit, FilePosition, Query, SourceChange, SourceFileNodeEdit, ReferenceResolution, @@ -71,6 +71,9 @@ impl AnalysisHostImpl { self.db .query_mut(ra_db::SourceRootQuery) .set(library.root_id, Default::default()); + self.db + .query_mut(LibrarySymbolsQuery) + .set(library.root_id, Arc::new(library.symbol_index)); self.apply_root_change(library.root_id, library.root_change); } self.db -- cgit v1.2.3