We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4da46bd + 989e8e1 commit 45ac966Copy full SHA for 45ac966
src/run-code.ts
@@ -31,7 +31,13 @@ export function runInferredCodeBlockAndMoveDown(): void {
31
32
const endPosition = new Position(expandedCodeRange.end.line + 1, 0);
33
const newSelection = new Selection(endPosition, endPosition);
34
- textEditor.selections = [newSelection];
+ setSelection(textEditor, newSelection);
35
+}
36
+
37
+/** Set selection in given text editor and scroll down */
38
+function setSelection(textEditor: TextEditor, selection: Selection): void {
39
+ textEditor.selections = [selection];
40
+ textEditor.revealRange(selection);
41
}
42
43
function _runInferredCodeBlock(textEditor: TextEditor): Range {
0 commit comments