Skip to content

fix(lsp): send error response to request when no data is available#257

Merged
WillLillis merged 5 commits intobergercookie:masterfrom
WillLillis:fix_none
Sep 7, 2025
Merged

fix(lsp): send error response to request when no data is available#257
WillLillis merged 5 commits intobergercookie:masterfrom
WillLillis:fix_none

Conversation

@WillLillis
Copy link
Collaborator

@WillLillis WillLillis commented Sep 7, 2025

Sending a response with both error and result set to None does not
conform to the LSP spec, and results in an error being displayed by
Neovim's client.

With this change, we no longer have to special-case Helix's client.

Also, this PR also makes use of the new nested if let chains.

@WillLillis WillLillis merged commit 9df3f51 into bergercookie:master Sep 7, 2025
15 checks passed
@WillLillis WillLillis deleted the fix_none branch September 7, 2025 05:57
@griwes
Copy link

griwes commented Oct 19, 2025

Any chance you could cut a release including these changes?

@WillLillis
Copy link
Collaborator Author

Any chance you could cut a release including these changes?

Sure thing!

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.

[Bug] Hover request (textDocument/hover) results in a malformed/truncated JSON response in v0.10.0

2 participants