提交 65488b26 编写于 作者: I isidor

open editors better reaction to events

上级 2d6b2378
......@@ -141,9 +141,18 @@ export class OpenEditorsView extends ViewsViewletPanel {
this.list.splice(index, 1, [new OpenEditor(e.editor, group)]);
break;
}
case GroupChangeKind.EDITOR_MOVE:
case GroupChangeKind.EDITOR_CLOSE:
case GroupChangeKind.EDITOR_OPEN: {
this.list.splice(index, 0, [new OpenEditor(e.editor, group)]);
setTimeout(() => this.updateSize(), this.structuralRefreshDelay);
break;
}
case GroupChangeKind.EDITOR_CLOSE: {
const previousIndex = this.getIndex(group, undefined) + e.editorIndex;
this.list.splice(previousIndex, 1);
this.updateSize();
break;
}
case GroupChangeKind.EDITOR_MOVE: {
this.listRefreshScheduler.schedule();
break;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册