()
| 65 | let rgPathPromise: Promise<string> | null = null |
| 66 | |
| 67 | export const getRgPath = (): Promise<string> => { |
| 68 | if (!rgPathPromise) { |
| 69 | rgPathPromise = getRipgrepPath() |
| 70 | } |
| 71 | return rgPathPromise |
| 72 | } |
| 73 | |
| 74 | /** |
| 75 | * Reset the cached ripgrep path promise. |
no test coverage detected