( shareDir: string, signal?: AbortSignal | undefined, )
| 76 | } |
| 77 | |
| 78 | async function resolveRgPath( |
| 79 | shareDir: string, |
| 80 | signal?: AbortSignal | undefined, |
| 81 | ): Promise<RgResolution> { |
| 82 | const existing = await findExistingRg(shareDir); |
| 83 | if (existing) return existing; |
| 84 | signal?.throwIfAborted(); |
| 85 | return downloadRgWithLock(shareDir); |
| 86 | } |
| 87 | |
| 88 | /** |
| 89 | * Pure-lookup variant for test harnesses that want to assert on the |
no test coverage detected