MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / collectExistingPaths

Function collectExistingPaths

cli/src/utils/theme-system.ts:193–206  ·  view source on GitHub ↗
(candidates: string[])

Source from the content-addressed store, hash-verified

191}
192
193const 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
208const resolveVSCodeSettingsPaths = (
209 env: CliEnv = getCliEnv(),

Callers 3

detectVSCodeThemeFunction · 0.85
detectJetBrainsThemeFunction · 0.85
detectZedThemeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected