MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getLanguageName

Function getLanguageName

src/utils/cliHighlight.ts:49–54  ·  view source on GitHub ↗
(file_path: string)

Source from the content-addressed store, hash-verified

47 * on this, they fire-and-forget or the consumer already handles Promise<string>.
48 */
49export async function getLanguageName(file_path: string): Promise<string> {
50 await getCliHighlightPromise()
51 const ext = extname(file_path).slice(1)
52 if (!ext) return 'unknown'
53 return loadedGetLanguage?.(ext)?.name ?? 'unknown'
54}
55

Callers 2

FilePermissionDialogFunction · 0.85

Calls 1

getCliHighlightPromiseFunction · 0.85

Tested by

no test coverage detected