From bb2331b98e1616b6ab304b59e80b78e1f2e7a118 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 16 Sep 2018 16:25:24 +0300 Subject: [PATCH] goto super places cursor on mod --- editors/code/src/extension.ts | 1 + 1 file changed, 1 insertion(+) 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) })