src/vs/workbench/contrib/terminal/browser/terminalInstance.ts/TerminalInstance/shouldPersist
class TerminalInstance:	get shouldPersist(): boolean { return (this._processManager.shouldPersist || this._shutdownPersistentProcessId !== undefined) && !this.shellLaunchConfig.isTransient && (!this.reconnectionProperties || this._configurationService.getValue(TaskSettingId.Reconnection) === true); }