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

Function logLoadOnce

src/utils/bash/parser.ts:37–44  ·  view source on GitHub ↗
(success: boolean)

Source from the content-addressed store, hash-verified

35
36let logged = false
37function logLoadOnce(success: boolean): void {
38 if (logged) return
39 logged = true
40 logForDebugging(
41 success ? 'tree-sitter: native module loaded' : 'tree-sitter: unavailable',
42 )
43 logEvent('tengu_tree_sitter_load', { success })
44}
45
46/**
47 * Awaits WASM init (Parser.init + Language.load). Must be called before

Callers 2

parseCommandFunction · 0.85
parseCommandRawFunction · 0.85

Calls 2

logForDebuggingFunction · 0.85
logEventFunction · 0.85

Tested by

no test coverage detected