apache / daffodil-vscode

Apache Daffodil™ Extension for Visual Studio Code
https://daffodil.apache.org/
Apache License 2.0
11 stars 19 forks source link

Byte highlighting doesn't always work when scrolling through the results #1015

Open scholarsmate opened 5 months ago

scholarsmate commented 5 months ago

Most of the time the highlighting works, but from time to time, it doesn't. I suspect it might be an order of events kind of bug. It also affect the replace feature where often you'll see the bytes that will be replaced by the new sequence of bytes, but from time to time, the highlighting doesn't work.

Here you can see the searched for bytes (xml) at the found offset (272f), but those bytes are not being highlighted.

Screenshot 2024-04-29 at 10 43 24 AM

But if I seek back to the last match, then forward to this match again, the highlights appear.

Screenshot 2024-04-29 at 10 48 44 AM
stricklandrbls commented 5 months ago

@scholarsmate I've been trying to replicate this but have been able to traverse all throughout the search results and have them highlight appropriately.

What OS are you running this on when you are seeing this?