(
private readonly containerManager: ContainerManager,
private readonly projectRuntimes: MultiProjectRuntimeEntry[],
workspaceName: string
)
| 43 | private readonly containerPath: string; |
| 44 | |
| 45 | constructor( |
| 46 | private readonly containerManager: ContainerManager, |
| 47 | private readonly projectRuntimes: MultiProjectRuntimeEntry[], |
| 48 | workspaceName: string |
| 49 | ) { |
| 50 | assert(projectRuntimes.length > 0, "MultiProjectRuntime requires at least one project runtime"); |
| 51 | |
| 52 | this.primaryRuntime = projectRuntimes[0].runtime; |
| 53 | this.containerPath = containerManager.getContainerPath(workspaceName); |
| 54 | this.createFlags = this.primaryRuntime.createFlags; |
| 55 | |
| 56 | this.finalizeConfig = this.primaryRuntime.finalizeConfig?.bind(this.primaryRuntime); |
| 57 | this.validateBeforePersist = this.primaryRuntime.validateBeforePersist?.bind( |
| 58 | this.primaryRuntime |
| 59 | ); |
| 60 | this.postCreateSetup = this.primaryRuntime.postCreateSetup?.bind(this.primaryRuntime); |
| 61 | } |
| 62 | |
| 63 | async ensureReady(options?: EnsureReadyOptions): Promise<EnsureReadyResult> { |
| 64 | for (const projectRuntime of this.projectRuntimes) { |
nothing calls this directly
no test coverage detected