(rootDir: string, cache: EmbeddingCache, fileName: string)
| 423 | } |
| 424 | |
| 425 | export async function saveEmbeddingCache(rootDir: string, cache: EmbeddingCache, fileName: string): Promise<void> { |
| 426 | await ensureMcpDataDir(rootDir); |
| 427 | await writeFile(join(rootDir, CACHE_DIR, fileName), JSON.stringify(cache)); |
| 428 | } |
| 429 | |
| 430 | function formatLineRange(line: number, endLine?: number): string { |
| 431 | if (endLine && endLine > line) return `L${line}-L${endLine}`; |
no test coverage detected