src/vs/workbench/contrib/terminal/browser/terminalProcessManager.ts/TerminalProcessManager/detachFromProcess
class TerminalProcessManager:	async detachFromProcess(forcePersist?: boolean): Promise<void> {
		await this._process?.detach?.(forcePersist);
		this._process = null;
	}