Skip to content

Commit

Permalink
feat: change cursor by default
Browse files Browse the repository at this point in the history
  • Loading branch information
AdoKevin committed Aug 21, 2023
1 parent 6263542 commit 471359c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/jump.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {
Range,
Selection,
TextEditorRevealType,
commands,
type DocumentSymbol,
Expand Down Expand Up @@ -29,6 +30,7 @@ export async function jumpTo(target: JumpType, textEditor: TextEditor, cache?: D

if (targetRange) {
textEditor.revealRange(targetRange, TextEditorRevealType.InCenter);
textEditor.selection = new Selection(targetRange.start, targetRange.start);
}
}
}
Expand Down

0 comments on commit 471359c

Please # to comment.