mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
move
This commit is contained in:
parent
0d6d74e78e
commit
1f2fb4e27f
5 changed files with 101 additions and 96 deletions
|
@ -395,7 +395,7 @@ async function applySourceChange(change: SourceChange) {
|
|||
let uri = client.protocol2CodeConverter.asUri(toReveal.textDocument.uri)
|
||||
let position = client.protocol2CodeConverter.asPosition(toReveal.position)
|
||||
let editor = vscode.window.activeTextEditor;
|
||||
if (!editor || editor.document.uri != uri) return
|
||||
if (!editor || editor.document.uri.toString() != uri.toString()) return
|
||||
if (!editor.selection.isEmpty) return
|
||||
editor!.selection = new vscode.Selection(position, position)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue