Skip to content

fix: broken text after receiving batched changes #413

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

Conversation

psteinroe
Copy link
Collaborator

@psteinroe psteinroe commented Jun 2, 2025

This might be the simplest and weirdest fix of all time.

Again, the core issue is that when we receive batched change params, the ranges are always relative to the original state. This is why we offset them after each. While this is required for our statement range logic to work, it breaks the change tracking for changes to the text. Here, we need to use the un-adjusted range.

So yeah, all in all this needs a serious refactor at some point :D

EDIT: Need to check that failing test...

@psteinroe psteinroe marked this pull request as ready for review June 5, 2025 07:19
@psteinroe psteinroe requested a review from juleswritescode June 5, 2025 07:19
@psteinroe psteinroe changed the title fix: crash fix: broken text after receiving batched changes Jun 5, 2025
@psteinroe psteinroe marked this pull request as draft June 5, 2025 07:38
@psteinroe psteinroe removed the request for review from juleswritescode June 5, 2025 07:38
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.

1 participant