(containerId: string)
| 156 | const DEFAULT_CLEANUP_TIMEOUT_MS = 60_000; // 1 minute |
| 157 | |
| 158 | async function removeDevcontainerContainer(containerId: string): Promise<void> { |
| 159 | await new Promise<void>((resolve) => { |
| 160 | const proc = spawn("docker", ["rm", "-f", containerId], { |
| 161 | stdio: ["ignore", "pipe", "pipe"], |
| 162 | timeout: DEFAULT_CLEANUP_TIMEOUT_MS, |
| 163 | }); |
| 164 | |
| 165 | proc.on("error", () => { |
| 166 | resolve(); |
| 167 | }); |
| 168 | |
| 169 | proc.on("close", () => { |
| 170 | resolve(); |
| 171 | }); |
| 172 | }); |
| 173 | } |
| 174 | const VERSION_CHECK_TIMEOUT_MS = 10_000; // 10 seconds |
| 175 | |
| 176 | /** |
no test coverage detected