JakeBecker / elixir-ls

A frontend-independent IDE "smartness" server for Elixir. Implements the JSON-based "Language Server Protocol" standard and provides debugger support via VS Code's debugger protocol.
Apache License 2.0
843 stars 52 forks source link

Added support for shutdown notification #208

Closed bfolkens closed 4 years ago

bfolkens commented 4 years ago

As described in issues #208 and #189, it appears that the following notification isn't handled:

%{"id" => 2, "jsonrpc" => "2.0", "method" => "shutdown"}

This PR adds support for this notification, and tests to support. Added note to @JakeBecker - might want to check if apps/language_server/lib/language_server/server.ex:332 is still necessary. At least on my brief review of https://github.com/Microsoft/language-server-protocol/blob/master/versions/protocol-2-x.md#shutdown-request, it didn't look like that was part of the spec (which was apparently causing the error).