-
Notifications
You must be signed in to change notification settings - Fork 93
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
Add support for exiting immediately from a shutdown() request. #1070
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a changelog, since we will need to do a 0.17.1 release for this
Supports the capability, which means that language server shuts down when `shutdown` is received instead of when `exit` is received. See eclipse-lemminx/lemminx#1070 Signed-off-by: David Thompson <davthomp@redhat.com>
Supports the capability, which means that language server shuts down when `shutdown` is received instead of when `exit` is received. See eclipse-lemminx/lemminx#1070 Signed-off-by: David Thompson <davthomp@redhat.com>
- In languageclient 7.x, the client fails to send the necessary exit() once a shutdown() response is received from the language server - When client defines shouldLanguageServerExitOnShutdown as true, the language server will exit immediately after the shutdown request - Adjust CHANGELOG for a 0.17.1 release Signed-off-by: Roland Grunberg <rgrunber@redhat.com>
Supports the capability, which means that language server shuts down when `shutdown` is received instead of when `exit` is received. See eclipse-lemminx/lemminx#1070 Signed-off-by: David Thompson <davthomp@redhat.com>
I have not tested but after debugging vscode languageclient 7.0.0 , the problem occured in shutdown process: It called:
I have not tested, but I think this commit microsoft/vscode-languageserver-node@6eef6d2#diff-1442f78812d67be25f18d3b5d82e8b4191ae2f939a900eac32d4360222c5d845R3349 should fix the issue. IMHO, once microsoft/vscode-languageserver-node@6eef6d2#diff-1442f78812d67be25f18d3b5d82e8b4191ae2f939a900eac32d4360222c5d845R3349 will be released, we should test it and remove the Anyway thanks @rgrunber for your patch! |
Supports the capability, which means that language server shuts down when `shutdown` is received instead of when `exit` is received. See eclipse-lemminx/lemminx#1070 Signed-off-by: David Thompson <davthomp@redhat.com>
LemMinX (at least for those adopting vscode-languageclient 7.x) will not exit immediately after the client shuts down, and relies on the parent process watcher, which can take some time.
once a shutdown() response is received from the language server
language server will exit immediately after the shutdown request
Signed-off-by: Roland Grunberg rgrunber@redhat.com
The delay ensures the shutdown() response will be received by the client.