(lines: string[], line: number)
| 62 | } |
| 63 | |
| 64 | function buildPreviewFromFileLines(lines: string[], line: number): string { |
| 65 | const start = Math.max(0, line - 2); |
| 66 | const end = Math.min(lines.length, line + 1); |
| 67 | return lines.slice(start, end).join('\n').trim(); |
| 68 | } |
| 69 | |
| 70 | function resolveAbsoluteChunkPath(rootPath: string, chunk: IndexedChunk): string | null { |
| 71 | const resolvedRoot = path.resolve(rootPath); |
no outgoing calls
no test coverage detected