diff --git a/src/vs/editor/contrib/referenceSearch/referencesController.ts b/src/vs/editor/contrib/referenceSearch/referencesController.ts index 69fe4df3ebb21..c4455d7c9dd38 100644 --- a/src/vs/editor/contrib/referenceSearch/referencesController.ts +++ b/src/vs/editor/contrib/referenceSearch/referencesController.ts @@ -178,6 +178,7 @@ export class ReferencesController implements editorCommon.IEditorContribution { let source = this._model.nearestReference(this._editor.getModel().uri, this._widget.position); let target = this._model.nextOrPreviousReference(source, fwd); this._gotoReference(target); + this._widget.setSelection(target); this._editor.focus(); }