()
| 22 | let initialized = false; |
| 23 | |
| 24 | export async function initTreeSitter(): Promise<void> { |
| 25 | if (initialized) return; |
| 26 | const runtimePath = getWasmPath('runtime'); |
| 27 | const wasmBuf = await readFile(runtimePath); |
| 28 | await Parser.init({ |
| 29 | locateFile: () => runtimePath, |
| 30 | wasmBinary: wasmBuf, |
| 31 | }); |
| 32 | initialized = true; |
| 33 | } |
| 34 | |
| 35 | let pyParser: Parser | null = null; |
| 36 |
no test coverage detected