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

grid - fix pin event

上级 dc65622b
......@@ -340,6 +340,7 @@ export class NextEditorGroupView extends Themable implements INextEditorGroupVie
private registerListeners(): void {
// Model Events
this._register(this._group.onDidEditorPin(editor => this.onDidEditorPin(editor)));
this._register(this._group.onDidEditorOpen(editor => this.onDidEditorOpen(editor)));
this._register(this._group.onDidEditorClose(editor => this.onDidEditorClose(editor)));
this._register(this._group.onDidEditorDispose(editor => this.onDidEditorDispose(editor)));
......@@ -350,6 +351,12 @@ export class NextEditorGroupView extends Themable implements INextEditorGroupVie
this._register(this.accessor.onDidEditorPartOptionsChange(e => this.onDidEditorPartOptionsChange(e)));
}
private onDidEditorPin(editor: EditorInput): void {
// Event
this._onDidGroupChange.fire({ kind: GroupChangeKind.EDITOR_PIN, editor });
}
private onDidEditorOpen(editor: EditorInput): void {
/* __GDPR__
"editorOpened" : {
......@@ -599,9 +606,6 @@ export class NextEditorGroupView extends Themable implements INextEditorGroupVie
// Forward to title control
this.titleAreaControl.pinEditor(editor);
// Event
this._onDidGroupChange.fire({ kind: GroupChangeKind.EDITOR_PIN, editor });
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册