Skip to content

v1.0.207

Choose a tag to compare

@github-actions github-actions released this 11 May 12:13
· 74 commits to main since this release

🐛 Fix: Diff view rows no longer collapse on file switch

In the git changes pane, switching between files could leave a stretch of rows visually stacked on top of each other — line numbers blurred together at one Y position, characters overlapping — until you toggled compact / full density or did anything else that re-ran syntax highlighting. The symptom showed up in both density modes and was easy to mistake for garbled rendering.

The diff viewer's virtualizer was reusing per-index row-height measurements across files. If any of those measurements got captured at zero height during a layout-jitter frame between the highlighter's plain-text and tokenized-HTML render passes, the bad value would pin itself there: the row outer div carries height: ${size}px inline, and ref={measureElement} reciprocally confirms whatever the inline value already is — neither side ever disagrees, so nothing nudges the cache back. Re-running the highlighter happened to trigger a content-size change that woke ResizeObserver and overwrote the stale measurement, which is why users found that "switching density fixes it."

Measurements now reset whenever the underlying diff content changes, alongside the existing gap-state reset.