* Connect to the CLI server (via socket or stdio)
()
| 2395 | * Connect to the CLI server (via socket or stdio) |
| 2396 | */ |
| 2397 | private async connectToServer(): Promise<void> { |
| 2398 | switch (this.connectionConfig.kind) { |
| 2399 | case "parent-process": |
| 2400 | return this.connectToParentProcessViaStdio(); |
| 2401 | case "stdio": |
| 2402 | return this.connectToChildProcessViaStdio(); |
| 2403 | case "tcp": |
| 2404 | case "uri": |
| 2405 | return this.connectViaTcp(); |
| 2406 | } |
| 2407 | } |
| 2408 | |
| 2409 | /** |
| 2410 | * Connect to child via stdio pipes |
no test coverage detected