mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-31 13:40:15 +03:00
move
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user