Skip to content

Commit

Permalink
Remove instances from term editor service on dispose
Browse files Browse the repository at this point in the history
Fixes #127307
  • Loading branch information
Tyriar committed Jun 28, 2021
1 parent 2634813 commit 6ab9dce
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export class TerminalEditorService extends Disposable implements ITerminalEditor
this.instances.push(unknownEditor.terminalInstance);
}
}));
this._register(this.onDidDisposeInstance(instance => this.detachInstance(instance)));
}

private _getActiveTerminalEditors(): IEditorInput[] {
Expand Down

0 comments on commit 6ab9dce

Please sign in to comment.