Skip to content

Commit 9c331f8

Browse files
committed
Scroll into VS Code when statement is executed
Signed-off-by: worksofliam <[email protected]>
1 parent b280939 commit 9c331f8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/views/results/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ async function runHandler(options?: StatementInfo) {
271271
if (editor) {
272272
let group = statementDetail.group;
273273
editor.selection = new vscode.Selection(editor.document.positionAt(group.range.start), editor.document.positionAt(group.range.end));
274+
editor.revealRange(editor.selection);
274275

275276
if (group.statements.length === 1 && statementDetail.embeddedInfo && statementDetail.embeddedInfo.changed) {
276277
editor.insertSnippet(new SnippetString(statementDetail.embeddedInfo.content));

0 commit comments

Comments
 (0)