mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 21:35:20 +00:00
Make Analysis api cancellable
This commit is contained in:
parent
a8e37ddbc8
commit
dbbb0beb3e
8 changed files with 107 additions and 87 deletions
|
@ -55,7 +55,7 @@ pub(crate) fn run(verbose: bool, path: &Path, op: Op) -> Result<()> {
|
|||
Op::Complete { line, column, .. } => {
|
||||
let offset = host
|
||||
.analysis()
|
||||
.file_line_index(file_id)
|
||||
.file_line_index(file_id)?
|
||||
.offset(LineCol { line, col_utf16: column });
|
||||
let file_postion = FilePosition { file_id, offset };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue