(candidates: string[])
| 191 | } |
| 192 | |
| 193 | const collectExistingPaths = (candidates: string[]): string[] => { |
| 194 | const seen = new Set<string>() |
| 195 | for (const candidate of candidates) { |
| 196 | if (!candidate) continue |
| 197 | try { |
| 198 | if (existsSync(candidate)) { |
| 199 | seen.add(candidate) |
| 200 | } |
| 201 | } catch { |
| 202 | // Ignore filesystem errors when probing paths |
| 203 | } |
| 204 | } |
| 205 | return [...seen] |
| 206 | } |
| 207 | |
| 208 | const resolveVSCodeSettingsPaths = ( |
| 209 | env: CliEnv = getCliEnv(), |
no outgoing calls
no test coverage detected