Skip to content

Conversation

@amadeus
Copy link
Member

@amadeus amadeus commented Jan 21, 2026

WIP

@vercel
Copy link

vercel bot commented Jan 21, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
pierrejs-diff-demo Ready Ready Preview Feb 4, 2026 1:28am
pierrejs-docs Ready Ready Preview Feb 4, 2026 1:28am
pierrejs-solid-diff-demo Ready Ready Preview Feb 4, 2026 1:28am

Request Review

@amadeus amadeus force-pushed the amadeus/virtualization-part-2 branch from bbae805 to a86c7d3 Compare January 21, 2026 23:24
@amadeus amadeus force-pushed the amadeus/virtualization-part-2 branch from 9fd37f6 to ed61192 Compare January 22, 2026 20:37
@amadeus amadeus force-pushed the amadeus/virtualization-part-2 branch from ed61192 to 20570bd Compare January 23, 2026 21:38
@amadeus amadeus force-pushed the amadeus/virtualization-part-2 branch from 20570bd to 05a72a6 Compare January 23, 2026 23:30
@amadeus amadeus force-pushed the amadeus/virtualization-part-2 branch from 05a72a6 to 837c217 Compare January 24, 2026 03:12
@amadeus amadeus force-pushed the amadeus/virtualization-part-2 branch from 837c217 to 1750c88 Compare January 26, 2026 06:01
A much needed configuration for all of this...
It works, and it definitely shows promise!
This one i think _feels_ a bit better? as it manages to better utilize
the window rendering system to only render what's necessary...
Not quite ready yet, since we still need to figure out how to join
buffers to appended content...
This should fix the broken buffer regions
* Hovers will be controlled by JS (not yet implemented)
* Also fix a bug on selected context elements
This will not fix incomplete or selections that are virtualized... that
will take a bit more work...

We will need a new API to get line index from a diff/file...
A few important changes here.

* Line indexes when setting a selection should not be based on the DOM
  as that's not a valid heuristic for index range to select from
* Added a helper method to determine line indexes programmatically from
  the dif
  * We should probably do something where we can cache the line index
    values onces we've retrieved them for a selection, calling the
    function on every render is probably not ideal if it's a large
    file...
Basically just use the helper method completely
The logic for partial renders was inverted, oops
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants