Skip to content

Commit

Permalink
fix #127307
Browse files Browse the repository at this point in the history
  • Loading branch information
meganrogge committed Jun 28, 2021
1 parent 056adf5 commit 8dabcd1
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ export class TerminalEditorService extends Disposable implements ITerminalEditor
}
}));
this._register(this.onDidDisposeInstance(instance => this.detachInstance(instance)));
this._register(this._editorService.onDidCloseEditor(editor => {
if (editor instanceof TerminalEditorInput && editor.terminalInstance) {
this.detachInstance(editor.terminalInstance);
}
}));
}

private _getActiveTerminalEditors(): IEditorInput[] {
Expand Down

0 comments on commit 8dabcd1

Please sign in to comment.