src/vs/workbench/contrib/terminal/browser/terminalProcessManager.ts/TerminalProcessManager/detachFromProcess
class TerminalProcessManager:	async detachFromProcess(): Promise<void> {
		if (!this._process) {
			return;
		}
		if (this._process.detach) {
			await this._process.detach();
		} else {
			throw new Error('This terminal process does not support detaching');
		}
		this._process = null;
	}