(session: Session)
| 1431 | } |
| 1432 | |
| 1433 | async setSession(session: Session): Promise<void> { |
| 1434 | const previous = this.unloadCurrentSession('switching session'); |
| 1435 | await previous?.close(); |
| 1436 | this.session = session; |
| 1437 | this.harness.setTelemetryContext({ sessionId: session.id }); |
| 1438 | this.registerSessionHandlers(session); |
| 1439 | this.syncAdditionalDirs(session); |
| 1440 | } |
| 1441 | |
| 1442 | async syncRuntimeState(session: Session = this.requireSession()): Promise<void> { |
| 1443 | const [status, goalResult] = await Promise.all([session.getStatus(), session.getGoal()]); |
no test coverage detected