(
workspaceName: string,
options: EnsureReadyOptions | undefined,
emitStatus: (phase: RuntimeStatusEvent["phase"], detail?: string) => void
)
| 150 | } |
| 151 | |
| 152 | private async markReadyIfRepoPresent( |
| 153 | workspaceName: string, |
| 154 | options: EnsureReadyOptions | undefined, |
| 155 | emitStatus: (phase: RuntimeStatusEvent["phase"], detail?: string) => void |
| 156 | ): Promise<EnsureReadyResult> { |
| 157 | const repoCheck = await this.checkWorkspaceRepo(options); |
| 158 | if (repoCheck && !repoCheck.ready) { |
| 159 | emitStatus("error", repoCheck.error); |
| 160 | return repoCheck; |
| 161 | } |
| 162 | |
| 163 | this.markActivity(workspaceName); |
| 164 | emitStatus("ready"); |
| 165 | return { ready: true }; |
| 166 | } |
| 167 | |
| 168 | private isStoppingOrCanceling(status: WorkspaceStatusResult): boolean { |
| 169 | return status.kind === "ok" && (status.status === "stopping" || status.status === "canceling"); |
no test coverage detected