()
| 1406 | // ========================================================================= |
| 1407 | |
| 1408 | requireSession(): Session { |
| 1409 | if (this.session === undefined) { |
| 1410 | throw new Error(NO_ACTIVE_SESSION_MESSAGE); |
| 1411 | } |
| 1412 | return this.session; |
| 1413 | } |
| 1414 | |
| 1415 | private async createSessionFromCurrentState(): Promise<Session> { |
| 1416 | const model = this.state.appState.model.trim(); |
no outgoing calls
no test coverage detected