mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
use completions in API
This commit is contained in:
parent
ba0072401c
commit
d4ef07b235
2 changed files with 7 additions and 8 deletions
|
@ -219,7 +219,8 @@ impl AnalysisImpl {
|
|||
self.db.crate_graph().crate_root(crate_id)
|
||||
}
|
||||
pub fn completions(&self, position: FilePosition) -> Cancelable<Option<Vec<CompletionItem>>> {
|
||||
completions(&self.db, position)
|
||||
let completions = completions(&self.db, position)?;
|
||||
Ok(completions.map(|it| it.into()))
|
||||
}
|
||||
pub fn approximately_resolve_symbol(
|
||||
&self,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue