( runtime: Runtime, params: WorkspaceInitParams )
| 37 | * runtimes with provisioning steps (Docker, CoderSSH) work correctly. |
| 38 | */ |
| 39 | export async function runFullInit( |
| 40 | runtime: Runtime, |
| 41 | params: WorkspaceInitParams |
| 42 | ): Promise<WorkspaceInitResult> { |
| 43 | if (runtime.postCreateSetup) { |
| 44 | await runtime.postCreateSetup(params); |
| 45 | } |
| 46 | return runtime.initWorkspace(params); |
| 47 | } |
| 48 | |
| 49 | /** |
| 50 | * Fire-and-forget init with standardized error handling. |
no test coverage detected