提交 a7466c75 编写于 作者: J Johannes Rieken

keep focused element stable, #44414

上级 6275278a
......@@ -177,9 +177,12 @@ export class ReferencesController implements editorCommon.IEditorContribution {
public goToNextOrPreviousReference(fwd: boolean) {
let source = this._model.nearestReference(this._editor.getModel().uri, this._widget.position);
let target = this._model.nextOrPreviousReference(source, fwd);
let editorFocus = this._editor.isFocused();
this._gotoReference(target);
this._widget.setSelection(target);
this._editor.focus();
if (editorFocus) {
this._editor.focus();
}
}
public closeWidget(): void {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册