regal icon indicating copy to clipboard operation
regal copied to clipboard

Unparseable document freezes inlay hints

Open anderseknert opened this issue 1 month ago • 0 comments

As long as the working document parses, inlay hints are recalculated as they should. But if there are parser errors, it looks like we use the last good location. This is probably the right choice for some cases, but it can also lead to situtations where inlay hints obstruct the text being worked on:

Screenshot 2024-05-06 at 21 58 34

Not sure what the best solution is. Clearing all inlay hints on parse errors is obviously the easy choice, but perhaps we could be smarter about it an clear only those around where the parse error is reported.

anderseknert avatar May 07 '24 06:05 anderseknert