* Close the code-server process.
()
| 246 | * Close the code-server process. |
| 247 | */ |
| 248 | async close(): Promise<void> { |
| 249 | logger.debug("closing") |
| 250 | if (this.process) { |
| 251 | const proc = (await this.process).process |
| 252 | this.closed = true // To prevent the close handler from erroring. |
| 253 | proc.kill() |
| 254 | } |
| 255 | } |
| 256 | |
| 257 | /** |
| 258 | * Whether or not authentication is enabled. |