src/vs/workbench/contrib/terminal/electron-sandbox/localPty.ts/LocalPty/detach
class LocalPty:	detach(forcePersist?: boolean): Promise<void> {
		return this._localPtyService.detachFromProcess(this.id, forcePersist);
	}