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

Function getLanguageConfig

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

Source from the content-addressed store, hash-verified

296const unifiedLoader = new UnifiedLanguageLoader()
297
298export async function getLanguageConfig(
299 filePath: string,
300): Promise<LanguageConfig | undefined> {
301 try {
302 return await createLanguageConfig(filePath, unifiedLoader)
303 } catch (err) {
304 if (DEBUG_PARSING) {
305 console.error('[tree-sitter] Load error for', filePath, err)
306 }
307 return undefined
308 }
309}

Callers 2

getFileTokenScoresFunction · 0.90

Calls 1

createLanguageConfigFunction · 0.85

Tested by

no test coverage detected