mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
move world-symbols to file_symbols
This commit is contained in:
parent
29d8bfb9c9
commit
a94530afb3
3 changed files with 42 additions and 42 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue