提交 eea3e8ad 编写于 作者: I isidor

open editors: focus active group even if it does not have an editor. Make sure list is not empty

fixes #56806
上级 07796186
......@@ -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.list.length && 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.
先完成此消息的编辑!
想要评论请 注册