Skip to content

Conversation

@martskins
Copy link
Collaborator

This PR adds support for the shutdown request and fixes two issues. The first issue is that we were using exit instead of shutdown to indicate a server shutdown. The second issue is that shutting down (or exiting) the server would now cause the client to try and restart the server (because of the newly added auto-restart logic), so this checks whether the server was running before running the restart logic to fix that.

I've also modified the LanguageClientStop command to issue a shutdown instead of exit now, and call exit as a callback to shutdown.

@jez
Copy link
Contributor

jez commented Oct 29, 2020

Nice call! I can test this later.

@martskins martskins merged commit e3a42db into autozimu:dev Oct 31, 2020
@martskins martskins deleted the shutdown-impl branch October 31, 2020 23:00
martskins added a commit to martskins/LanguageClient-neovim that referenced this pull request Dec 6, 2020
martskins added a commit to martskins/LanguageClient-neovim that referenced this pull request Dec 6, 2020
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.

2 participants