Skip to content

Commit f5da394

Browse files
committed
Revert "fix microsoft#126469"
This reverts commit 3fd46f4.
1 parent 64e1bd2 commit f5da394

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ export class TerminalEditor extends EditorPane {
8585
}
8686

8787
override async setInput(newInput: TerminalEditorInput, options: IEditorOptions | undefined, context: IEditorOpenContext, token: CancellationToken) {
88+
this._editorInput?.terminalInstance?.detachFromElement();
8889
this._editorInput = newInput;
8990
await super.setInput(newInput, options, context, token);
9091
this._editorInput.terminalInstance?.attachToElement(this._parentElement!);

0 commit comments

Comments
 (0)