src/vs/platform/terminal/node/ptyService.ts/PersistentTerminalProcess/detach
class PersistentTerminalProcess:	async detach(): Promise<void> {
		this._logService.trace('persistentTerminalProcess#detach', this._persistentProcessId);
		if (this.shouldPersistTerminal) {
			this._disconnectRunner1.schedule();
		} else {
			this.shutdown(true);
		}
	}