mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 21:35:20 +00:00
cancelation
This commit is contained in:
parent
efa6a952b4
commit
d999f4b568
7 changed files with 119 additions and 60 deletions
|
@ -159,11 +159,11 @@ impl Analysis {
|
|||
let file = self.file_syntax(file_id);
|
||||
libeditor::file_structure(&file)
|
||||
}
|
||||
pub fn symbol_search(&self, query: Query) -> Vec<(FileId, FileSymbol)> {
|
||||
self.imp.world_symbols(query)
|
||||
pub fn symbol_search(&self, query: Query, token: &JobToken) -> Vec<(FileId, FileSymbol)> {
|
||||
self.imp.world_symbols(query, token)
|
||||
}
|
||||
pub fn approximately_resolve_symbol(&self, file_id: FileId, offset: TextUnit) -> Vec<(FileId, FileSymbol)> {
|
||||
self.imp.approximately_resolve_symbol(file_id, offset)
|
||||
pub fn approximately_resolve_symbol(&self, file_id: FileId, offset: TextUnit, token: &JobToken) -> Vec<(FileId, FileSymbol)> {
|
||||
self.imp.approximately_resolve_symbol(file_id, offset, token)
|
||||
}
|
||||
pub fn parent_module(&self, file_id: FileId) -> Vec<(FileId, FileSymbol)> {
|
||||
self.imp.parent_module(file_id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue