-
-
Notifications
You must be signed in to change notification settings - Fork 106
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
null value fields in payload should be skipped #145
Comments
Already tracked in #124 I believe. The consensus appears to be that nulls are not allowed unless explicitly specified in the protocol. |
This was referenced Feb 4, 2021
As @krassowski said, we are aware of that and the bug should be fixed in #139. It will be merged and released soon, but there will be backwards-incompatible changes. |
Solved in #139. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am not sure if the LSP spec specifies if you can use
null
for optional fields in response or notification. But this seems to cause issues with VS Code.Here is an example, consider this response content from
pygls
:Notice the
"detail": null
, looks like VS Code does not like that. Outline does not show up in VS Code UI when"detail": null
.Removing that
null
fields seems fix the issue with Outline not showing. This is the same case with CodeActions as well where the optional fields getnull
and it does not show up in VS Code UI.Typical CodeAction response:
Related: https://github.com/microsoft/vscode/issues/115793
Related: pappasam/jedi-language-server#60
The text was updated successfully, but these errors were encountered: