mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
make file-symbols query cancelable
This commit is contained in:
parent
e74bf6e56e
commit
71cbdddf1c
4 changed files with 48 additions and 40 deletions
|
@ -224,7 +224,7 @@ impl Analysis {
|
|||
ra_editor::folding_ranges(&file)
|
||||
}
|
||||
pub fn symbol_search(&self, query: Query) -> Cancelable<Vec<(FileId, FileSymbol)>> {
|
||||
Ok(self.imp.world_symbols(query))
|
||||
self.imp.world_symbols(query)
|
||||
}
|
||||
pub fn approximately_resolve_symbol(
|
||||
&self,
|
||||
|
@ -269,7 +269,7 @@ impl Analysis {
|
|||
file_id: FileId,
|
||||
offset: TextUnit,
|
||||
) -> Cancelable<Option<(FnDescriptor, Option<usize>)>> {
|
||||
Ok(self.imp.resolve_callable(file_id, offset))
|
||||
self.imp.resolve_callable(file_id, offset)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue