提交 2d6b2378 编写于 作者: B Benjamin Pasero

grid - add editor index to group change event

上级 ade1664b
......@@ -410,7 +410,7 @@ export class NextEditorGroupView extends Themable implements INextEditorGroupVie
// Event
this._onDidCloseEditor.fire(event);
this._onDidGroupChange.fire({ kind: GroupChangeKind.EDITOR_CLOSE, editor });
this._onDidGroupChange.fire({ kind: GroupChangeKind.EDITOR_CLOSE, editor, editorIndex: event.index });
}
private onDidEditorDispose(editor: EditorInput): void {
......
......@@ -254,6 +254,7 @@ export enum GroupChangeKind {
export interface IGroupChangeEvent {
kind: GroupChangeKind;
editor?: IEditorInput;
editorIndex?: number;
}
export interface INextEditorGroup {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册