( root: string, source: 'builtin' | 'ripgrep', paths: Required<VaultTextSearchToolPaths> )
| 1681 | } |
| 1682 | |
| 1683 | function candidateCacheKey( |
| 1684 | root: string, |
| 1685 | source: 'builtin' | 'ripgrep', |
| 1686 | paths: Required<VaultTextSearchToolPaths> |
| 1687 | ): string { |
| 1688 | return JSON.stringify({ |
| 1689 | root: path.resolve(root), |
| 1690 | source, |
| 1691 | paths |
| 1692 | }) |
| 1693 | } |
| 1694 | |
| 1695 | export function invalidateVaultTextSearchCache(root?: string): void { |
| 1696 | if (!cachedVaultTextSearchCandidates) return |
no outgoing calls
no test coverage detected