Skip to content

Commit 2a8371f

Browse files
committed
Remove terminal editor from service on editor close
Fixes microsoft#127307
1 parent 6ad943f commit 2a8371f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/vs/workbench/contrib/terminal/browser/terminalEditorService.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ export class TerminalEditorService extends Disposable implements ITerminalEditor
6464
}
6565
}));
6666
this._register(this.onDidDisposeInstance(instance => this.detachInstance(instance)));
67-
this._register(this._editorService.onDidCloseEditor(editor => {
68-
if (editor instanceof TerminalEditorInput && editor.terminalInstance) {
69-
this.detachInstance(editor.terminalInstance);
67+
this._register(this._editorService.onDidCloseEditor(e => {
68+
if (e.editor instanceof TerminalEditorInput && e.editor.terminalInstance) {
69+
this.detachInstance(e.editor.terminalInstance);
7070
}
7171
}));
7272
}

0 commit comments

Comments
 (0)