Skip to content

Commit f46b55a

Browse files
committed
use empty selection when navigating/showing results, microsoft#44414
1 parent 8d5d595 commit f46b55a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/vs/editor/contrib/referenceSearch/referencesController.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,10 +204,10 @@ export class ReferencesController implements editorCommon.IEditorContribution {
204204
this._widget.hide();
205205

206206
this._ignoreModelChangeEvent = true;
207-
const { uri, range } = ref;
207+
const range = Range.lift(ref.range).collapseToStart();
208208

209209
return this._editorService.openEditor({
210-
resource: uri,
210+
resource: ref.uri,
211211
options: { selection: range }
212212
}).then(openedEditor => {
213213
this._ignoreModelChangeEvent = false;

0 commit comments

Comments
 (0)