(vscodeAppRoot: string)
| 114 | * Returns `undefined` when ripgrep cannot be located. |
| 115 | */ |
| 116 | export async function getBinPath(vscodeAppRoot: string): Promise<string | undefined> { |
| 117 | for (const candidate of ripgrepCandidatePaths(vscodeAppRoot)) { |
| 118 | if (await fileExistsAtPath(candidate)) return candidate |
| 119 | } |
| 120 | return undefined |
| 121 | } |
| 122 | |
| 123 | async function execRipgrep(bin: string, args: string[]): Promise<string> { |
| 124 | return new Promise((resolve, reject) => { |
no test coverage detected