diff options
Diffstat (limited to 'code')
-rw-r--r-- | code/src/extension.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/code/src/extension.ts b/code/src/extension.ts index f2589ef2f..53ef83aab 100644 --- a/code/src/extension.ts +++ b/code/src/extension.ts | |||
@@ -395,7 +395,7 @@ async function applySourceChange(change: SourceChange) { | |||
395 | let uri = client.protocol2CodeConverter.asUri(toReveal.textDocument.uri) | 395 | let uri = client.protocol2CodeConverter.asUri(toReveal.textDocument.uri) |
396 | let position = client.protocol2CodeConverter.asPosition(toReveal.position) | 396 | let position = client.protocol2CodeConverter.asPosition(toReveal.position) |
397 | let editor = vscode.window.activeTextEditor; | 397 | let editor = vscode.window.activeTextEditor; |
398 | if (!editor || editor.document.uri != uri) return | 398 | if (!editor || editor.document.uri.toString() != uri.toString()) return |
399 | if (!editor.selection.isEmpty) return | 399 | if (!editor.selection.isEmpty) return |
400 | editor!.selection = new vscode.Selection(position, position) | 400 | editor!.selection = new vscode.Selection(position, position) |
401 | } | 401 | } |