move world-symbols to file_symbols

This commit is contained in:
Aleksey Kladov 2019-01-02 18:08:14 +03:00
parent 29d8bfb9c9
commit a94530afb3
3 changed files with 42 additions and 42 deletions

View file

@ -342,9 +342,7 @@ impl Analysis {
ra_editor::folding_ranges(&file)
}
pub fn symbol_search(&self, query: Query) -> Cancelable<Vec<NavigationTarget>> {
let res = self
.imp
.world_symbols(query)?
let res = symbol_index::world_symbols(&*self.imp.db, query)?
.into_iter()
.map(|(file_id, symbol)| NavigationTarget { file_id, symbol })
.collect();