File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,9 @@ export class JumpTracker {
114
114
if ( jump . document ) {
115
115
try {
116
116
// Open jump file from stored editor
117
- await vscode . window . showTextDocument ( jump . document ) ;
117
+ await vscode . window . showTextDocument ( jump . document , {
118
+ selection : new vscode . Range ( jump . position , jump . position ) ,
119
+ } ) ;
118
120
} catch ( e : unknown ) {
119
121
// This can happen when the document we'd like to jump to is weird (like a search editor) or has been deleted
120
122
throw VimError . fromCode ( ErrorCode . FileNoLongerAvailable ) ;
@@ -136,7 +138,9 @@ export class JumpTracker {
136
138
) [ 0 ] ;
137
139
138
140
if ( editor ) {
139
- await vscode . window . showTextDocument ( editor . document , jump . position . character , false ) ;
141
+ await vscode . window . showTextDocument ( editor . document , {
142
+ selection : new vscode . Range ( jump . position , jump . position ) ,
143
+ } ) ;
140
144
}
141
145
}
142
146
}
You can’t perform that action at this time.
0 commit comments