diff --git a/editors/code/src/extension.ts b/editors/code/src/extension.ts index 2c42c07fe0..c464ab5b26 100644 --- a/editors/code/src/extension.ts +++ b/editors/code/src/extension.ts @@ -77,6 +77,7 @@ export function activate(context: vscode.ExtensionContext) { let doc = await vscode.workspace.openTextDocument(uri) let e = await vscode.window.showTextDocument(doc) + e.selection = new vscode.Selection(range.start, range.start) e.revealRange(range, vscode.TextEditorRevealType.InCenter) })