提交 2ef61bfb 编写于 作者: I isidor

fix issues with active group and closing of editors

上级 ac114d6f
......@@ -131,6 +131,7 @@ export class OpenEditorsView extends ViewsViewletPanel {
}
break;
}
case GroupChangeKind.GROUP_ACTIVE:
case GroupChangeKind.EDITOR_ACTIVE: {
this.focusActiveEditor();
break;
......@@ -147,7 +148,7 @@ export class OpenEditorsView extends ViewsViewletPanel {
break;
}
case GroupChangeKind.EDITOR_CLOSE: {
const previousIndex = this.getIndex(group, undefined) + e.editorIndex;
const previousIndex = this.getIndex(group, undefined) + e.editorIndex + 1;
this.list.splice(previousIndex, 1);
this.updateSize();
break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册