Commit Graph
2 Commits
Author SHA1 Message Date
gaojunran d495771cee fix(ui): raise file open line limit to 20k lines 2026-08-27 12:56:56 +08:00
gaojunran ae1c6de470 feat(ui): virtualize large file preview in FilesView
Files above the editable size cap (MAX_VIEW_CHARS) now render their full
content through pierre's Virtualizer (viewport-only DOM) with highlighting on
the shared Shiki worker pool instead of a 200k-char main-thread-highlighted
slice.

Also fixes a pierre virtualization deadlock: forcing the virtualized host to
viewport height decoupled the IntersectionObserver judgment box from the
scroll content height, so a large scroll jump blanked the file (0 lines).
The large-file host now keeps no fixed height; the observer always sees it
intersecting.

Addresses #2868 (part 1: large-file preview virtualization).
2026-08-22 02:33:28 +08:00