From 290c9d6140e81598c93f6305b07e5d33cb6952ea Mon Sep 17 00:00:00 2001 From: Johannes Rieken Date: Fri, 16 Mar 2018 13:47:47 +0100 Subject: [PATCH] make sure to reveal the current symbol in the references tree, #44414 --- src/vs/editor/contrib/referenceSearch/referencesController.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/vs/editor/contrib/referenceSearch/referencesController.ts b/src/vs/editor/contrib/referenceSearch/referencesController.ts index 69fe4df3ebb..c4455d7c9dd 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(); } -- GitLab