src/vs/workbench/contrib/terminal/browser/terminalEditor.ts/TerminalEditor/clearInput
class TerminalEditor:	override clearInput(): void {
		super.clearInput();
		this._editorInput?.terminalInstance?.detachFromElement();
		this._editorInput = undefined;
	}