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
I was working on #227107 which involves listening to various view events and updating a cache. But I'm running into this problem where I want to clear all lines when new tokens come in, but it seems that a large range is being fired as changed when scrolling stops.
Here are a few logs that show that when scrolling only a single write occurs (the new line), 1 for each of the 2 mirrored buffers sent to the GPU. But when I stop scrolling I need to clear 33 lines from the cache (approximately the height of the viewport):
This is where the event originates after scrolling stops:
Would it be possible to tighten this to only fire for the ranges that actually change? AFAICT it's not changing any tokens.
The text was updated successfully, but these errors were encountered:
Tyriar
changed the title
Semantic tokens are causing a large range to fire
Semantic tokens are causing a large changed range onTokensChanged event to fire
Nov 15, 2024
I was working on #227107 which involves listening to various view events and updating a cache. But I'm running into this problem where I want to clear all lines when new tokens come in, but it seems that a large range is being fired as changed when scrolling stops.
Here are a few logs that show that when scrolling only a single write occurs (the new line), 1 for each of the 2 mirrored buffers sent to the GPU. But when I stop scrolling I need to clear 33 lines from the cache (approximately the height of the viewport):
This is where the event originates after scrolling stops:
Would it be possible to tighten this to only fire for the ranges that actually change? AFAICT it's not changing any tokens.
The text was updated successfully, but these errors were encountered: