()
| 66 | } |
| 67 | |
| 68 | function shouldUseSSH2Runtime(): boolean { |
| 69 | // Windows always uses SSH2 (no native OpenSSH) |
| 70 | if (process.platform === "win32") { |
| 71 | return true; |
| 72 | } |
| 73 | // Other platforms: check config (defaults to OpenSSH) |
| 74 | const config = new Config(); |
| 75 | return config.loadConfigOrDefault().useSSH2Transport ?? false; |
| 76 | } |
| 77 | |
| 78 | /** |
| 79 | * Error thrown when a workspace has an incompatible runtime configuration, |
no test coverage detected