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

Function findLanguageConfigByExtension

packages/code-map/src/languages.ts:246–251  ·  view source on GitHub ↗
(
  filePath: string,
)

Source from the content-addressed store, hash-verified

244/* 9. Helper functions */
245/* ------------------------------------------------------------------ */
246export function findLanguageConfigByExtension(
247 filePath: string,
248): LanguageConfig | undefined {
249 const ext = path.extname(filePath)
250 return languageTable.find((c) => c.extensions.includes(ext))
251}
252
253/* ------------------------------------------------------------------ */
254/* 10. Language configuration loader */

Callers 2

languages.test.tsFile · 0.90
createLanguageConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected