()
| 533 | * Returns current configuration immediately, with working status if available |
| 534 | */ |
| 535 | export function getRipgrepStatus(): { |
| 536 | mode: 'system' | 'builtin' | 'embedded' |
| 537 | path: string |
| 538 | working: boolean | null // null if not yet tested |
| 539 | } { |
| 540 | const config = getRipgrepConfig() |
| 541 | return { |
| 542 | mode: config.mode, |
| 543 | path: config.command, |
| 544 | working: ripgrepStatus?.working ?? null, |
| 545 | } |
| 546 | } |
| 547 | |
| 548 | /** |
| 549 | * Test ripgrep availability on first use and cache the result |
no outgoing calls
no test coverage detected