(filePath: string)
| 30 | }; |
| 31 | |
| 32 | export function detectLanguage(filePath: string): string | null { |
| 33 | const ext = path.extname(filePath).toLowerCase(); |
| 34 | return EXT_TO_LANG[ext] ?? null; |
| 35 | } |
| 36 | |
| 37 | async function initTreeSitter(): Promise<void> { |
| 38 | if (TreeSitter) return; |
no outgoing calls
no test coverage detected