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

Fix requestMessage doesnt seem to match spec #139

Conversation

bfolkens
Copy link
Contributor

In the LSP spec for requestMessage, the params key is optional. However, the code seems to only expect the 3 arity variant. This patch allows both the 2 arity and 3 arity variants, so that the shutdown requests will work (which doesn't include a params key).

Fixes #138

See also:
https://microsoft.github.io/language-server-protocol/specifications/specification-current/#requestMessage

Add a shutdown test with params and without params
Copy link
Member

@axelson axelson left a comment

Choose a reason for hiding this comment

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

Thanks! This looks good. ❤️

@axelson axelson merged commit 3145eff into elixir-lsp:master Feb 23, 2020
axelson added a commit that referenced this pull request Feb 23, 2020
@bfolkens bfolkens deleted the elixir-lsp/138_fix_requestMessage_doesnt_seem_to_match_spec branch February 24, 2020 00:13
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.

requestMessage doesn't seem to match spec for 2 arity variant
2 participants