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

Function tryResolveFromPackage

packages/code-map/src/languages.ts:193–200  ·  view source on GitHub ↗

* Fallback: try to resolve from the original package for development

(wasmFileName: string)

Source from the content-addressed store, hash-verified

191 * Fallback: try to resolve from the original package for development
192 */
193function tryResolveFromPackage(wasmFileName: string): string | null {
194 try {
195 // This works in development/monorepo scenarios
196 return require.resolve(`@vscode/tree-sitter-wasm/wasm/${wasmFileName}`)
197 } catch {
198 return null
199 }
200}
201
202/* ------------------------------------------------------------------ */
203/* 7. One-time library init */

Callers 1

loadLanguageMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected