* Get the starting line number for navigation purposes.
(entry: InternalFileEntry)
| 537 | * Get the starting line number for navigation purposes. |
| 538 | */ |
| 539 | private getStartLine(entry: InternalFileEntry): number | undefined { |
| 540 | if (entry.mode === "indentation") { |
| 541 | // For indentation mode, always return the effective anchor line |
| 542 | return entry.anchor_line ?? entry.offset ?? 1 |
| 543 | } |
| 544 | const offset = entry.offset ?? 1 |
| 545 | return offset > 1 ? offset : undefined |
| 546 | } |
| 547 | |
| 548 | /** |
| 549 | * Generate a human-readable line snippet for approval messages. |