()
| 525 | * Returns current configuration immediately, with working status if available |
| 526 | */ |
| 527 | export function getRipgrepStatus(): { |
| 528 | mode: 'system' | 'builtin' |
| 529 | path: string |
| 530 | working: boolean | null // null if not yet tested |
| 531 | } { |
| 532 | const config = getRipgrepConfig() |
| 533 | return { |
| 534 | mode: config.mode, |
| 535 | path: config.command, |
| 536 | working: ripgrepStatus?.working ?? null, |
| 537 | } |
| 538 | } |
| 539 | |
| 540 | /** |
| 541 | * Test ripgrep availability on first use and cache the result |
no outgoing calls
no test coverage detected