This commit is contained in:
Jake Heinz 2021-11-28 00:42:42 +00:00
parent e033d8c2a2
commit 8307d38dc1
4 changed files with 99 additions and 148 deletions

View file

@ -364,8 +364,8 @@ impl Analysis {
pub fn symbol_search(&self, query: Query) -> Cancellable<Vec<NavigationTarget>> {
self.with_db(|db| {
symbol_index::world_symbols(db, query)
.into_iter()
.map(|s| s.to_nav(db))
.into_iter() // xx: should we make this a par iter?
.filter_map(|s| s.try_to_nav(db))
.collect::<Vec<_>>()
})
}