提交 ff8009d5 编写于 作者: B Benjamin Pasero

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

This reverts commit 0e3a2219.
上级 2dc09277
......@@ -389,7 +389,7 @@ export class OpenEditorsView extends ViewletPanel {
}
private focusActiveEditor(): void {
if (this.editorGroupService.activeGroup) {
if (this.editorGroupService.activeGroup && this.editorGroupService.activeGroup.activeEditor /* could be empty */) {
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.
先完成此消息的编辑!
想要评论请 注册