MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / getRipgrepPath

Function getRipgrepPath

src/services/glob/list-files.ts:191–200  ·  view source on GitHub ↗

* Get the path to the ripgrep binary

()

Source from the content-addressed store, hash-verified

189 * Get the path to the ripgrep binary
190 */
191async function getRipgrepPath(): Promise<string> {
192 const vscodeAppRoot = vscode.env.appRoot
193 const rgPath = await getBinPath(vscodeAppRoot)
194
195 if (!rgPath) {
196 throw new Error("Could not find ripgrep binary")
197 }
198
199 return rgPath
200}
201
202/**
203 * List files using ripgrep with appropriate arguments

Callers 1

listFilesFunction · 0.85

Calls 1

getBinPathFunction · 0.90

Tested by

no test coverage detected