Skip to content

Commit

Permalink
Reveal line using go to line command
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasArvidsson committed Nov 25, 2023
1 parent 68d8c02 commit 465cdca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "andreas-talon",
"displayName": "Andreas Talon",
"description": "VSCode extension used by Talon Voice",
"version": "3.40.0",
"version": "3.40.1",
"publisher": "AndreasArvidsson",
"license": "MIT",
"main": "./out/extension.js",
Expand Down
5 changes: 4 additions & 1 deletion src/commands/goToLine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,8 @@ export function goToLine(line: number): void {
documentLine.firstNonWhitespaceCharacterIndex
);

editor.selection = new Selection(position, position);
const selection = new Selection(position, position);

editor.selection = selection;
editor.revealRange(selection);
}

0 comments on commit 465cdca

Please sign in to comment.