You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is currently no good way to coordinate changes between TreeSitterClient and a TextSystemStyler.
On change both a client and the styler need to be updated.
If you update the styler first, it will end up trying to validate synchronously (ok), but the client hasn't yet been updated so that fails.
If you update the client first, it will produce invalidations that will result in the styler performing work without yet processing the change.
This coordination problem existed with Neon 0.6 as well. The solution was either to wait for the next runloop turn to apply styling (easy, could result in styling flicker), or to use precise NSTextStorage/NSLayoutManger event hooks that aren't easy to set up (without TSYTextStorage from TextStory).
The text was updated successfully, but these errors were encountered:
I'm going to leave this issue open until I have proved to myself that this can be used successfully to guarantee synchronous styling on content change.
There is currently no good way to coordinate changes between TreeSitterClient and a TextSystemStyler.
On change both a client and the styler need to be updated.
This coordination problem existed with Neon 0.6 as well. The solution was either to wait for the next runloop turn to apply styling (easy, could result in styling flicker), or to use precise NSTextStorage/NSLayoutManger event hooks that aren't easy to set up (without TSYTextStorage from TextStory).
The text was updated successfully, but these errors were encountered: