提交 0e3a2219 编写于 作者: I isidor

open editors: focus active group even if it does not have an editor

fixes #56806
上级 1cd75449
......@@ -389,7 +389,7 @@ export class OpenEditorsView extends ViewletPanel {
}
private focusActiveEditor(): void {
if (this.editorGroupService.activeGroup && this.editorGroupService.activeGroup.activeEditor /* could be empty */) {
if (this.editorGroupService.activeGroup) {
const index = this.getIndex(this.editorGroupService.activeGroup, this.editorGroupService.activeGroup.activeEditor);
this.list.setFocus([index]);
this.list.setSelection([index]);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册