Expand description
Diff viewer panel โ shows file diffs with colored hunks, monospace text, and hunk headers highlighted.
When a commit is selected and its diff contains multiple files, a clickable file list is shown on the left side of the diff panel so the user can switch between files.
The diff content uses virtual scrolling: only the lines that fall within (or near) the visible viewport are materialised as widgets, keeping the widget tree small even for multi-thousand-line diffs.
Functionsยง
- view
- Render the diff viewer panel. If a diff is selected, render its hunks with colored lines; otherwise show a placeholder message.