This commit is contained in:
Logan Ramos
2021-09-17 10:40:35 -04:00
parent cc365575fc
commit 2db6938f52
2 changed files with 4 additions and 1 deletions
@@ -173,6 +173,7 @@ export class MainThreadEditorTabs {
case GroupChangeKind.EDITOR_CLOSE:
this._onDidTabClose(event);
break;
case GroupChangeKind.EDITOR_ACTIVE:
case GroupChangeKind.GROUP_ACTIVE:
if (this._editorGroupsService.activeGroup.id !== event.groupId) {
return;
@@ -142,7 +142,6 @@ export class EditorService extends Disposable implements EditorServiceImpl {
// Fire event to outside parties
this._onDidActiveEditorChange.fire();
this._onDidEditorsChange.fire([{ groupId: activeGroup.id, editor: this.lastActiveEditor, kind: GroupChangeKind.EDITOR_ACTIVE }]);
}
private registerGroupListeners(group: IEditorGroupView): void {
@@ -151,6 +150,9 @@ export class EditorService extends Disposable implements EditorServiceImpl {
groupDisposables.add(group.onDidGroupChange(e => {
switch (e.kind) {
case GroupChangeKind.EDITOR_ACTIVE:
if (group.activeEditor) {
this._onDidEditorsChange.fire([{ groupId: group.id, editor: group.activeEditor, kind: GroupChangeKind.EDITOR_ACTIVE }]);
}
this.handleActiveEditorChange(group);
this._onDidVisibleEditorsChange.fire();
break;