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

Permit window/showMessageRequest while uninitialized #228

Merged
merged 1 commit into from
Sep 25, 2020

Conversation

ebkalderon
Copy link
Owner

Fixed

  • Allow Client::show_message_request() requests to be sent while the server is uninitialized or initializing.

According to the LSP specification, the following client requests are allowed to be sent to the client while uninitialized:

  • window/logMessage
  • window/showMessage
  • window/showMessageRequest
  • telemetry/event

The current code suppresses attempts to send window/showMessageRequest requests to the language client if the server has not yet been initialized, which is clearly wrong, as explained above.

According to the [LSP specification], the following client requests
are allowed to be sent to the client while uninitialized:

* `window/logMessage`
* `window/showMessage`
* `window/showMessageRequest`
* `telemetry/event`

The current code suppresses attempts to send `window/showMessageRequest`
requests to the language client if the server has not yet been
initialized, which is clearly wrong, as explained above.

[LSP specification]: https://microsoft.github.io/language-server-protocol/specification#initialize
@ebkalderon ebkalderon self-assigned this Sep 24, 2020
@ebkalderon ebkalderon merged commit 58457ad into master Sep 25, 2020
@ebkalderon ebkalderon deleted the allow-uninit-showmessagerequest branch September 25, 2020 02:35
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.

1 participant