* Get the path to the ripgrep binary
()
| 189 | * Get the path to the ripgrep binary |
| 190 | */ |
| 191 | async 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 |
no test coverage detected