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

lsp: Fix issue with parse error inlay hints #701

Merged
merged 1 commit into from
May 8, 2024

Conversation

charlieegan3
Copy link
Member

Fixes #696

This change updates the server to attempt a partial parse instead when there are parse errors to still, if possible, show the hints for sections of the file before the first parse error.

This is a best effort adjustment, and if the parse still fails, all inlay hints are cleared until one or all of the parse errors are addressed.

This change updates the server to attempt a partial parse instead when
there are parse errors to still, if possible, show the hints for
sections of the file before the first parse error.

This is a best effort adjustment, and if the parse still fails, all
inlay hints are cleared until one or all of the parse errors are
addressed.

Signed-off-by: Charlie Egan <[email protected]>
Copy link
Member

@anderseknert anderseknert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@anderseknert anderseknert merged commit 3abf326 into main May 8, 2024
3 checks passed
@anderseknert anderseknert deleted the partial-inlay-hints branch May 8, 2024 12:39
srenatus pushed a commit to srenatus/regal that referenced this pull request Oct 1, 2024
This change updates the server to attempt a partial parse instead when
there are parse errors to still, if possible, show the hints for
sections of the file before the first parse error.

This is a best effort adjustment, and if the parse still fails, all
inlay hints are cleared until one or all of the parse errors are
addressed.

Signed-off-by: Charlie Egan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unparseable document freezes inlay hints
2 participants