Skip to content
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

Unparseable document freezes inlay hints #696

Closed
anderseknert opened this issue May 7, 2024 · 0 comments · Fixed by #701
Closed

Unparseable document freezes inlay hints #696

anderseknert opened this issue May 7, 2024 · 0 comments · Fixed by #701
Labels
bug Something isn't working language server protocol

Comments

@anderseknert
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working language server protocol
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant