Fixes #195: Clarification: what happens with exit notification prior to Initialize request

This commit is contained in:
Dirk Baeumer 2017-03-07 12:03:14 +01:00
parent bfa94d35d5
commit 17aae15b10

View file

@ -604,7 +604,7 @@ The current protocol specification defines that the lifetime of a server is mana
The initialize request is sent as the first request from the client to the server. If the server receives request or notification before the `initialize` request it should act as follows:
* for a request the respond should be errored with `code: -32002`. The message can be picked by the server.
* notifications should be dropped.
* notifications should be dropped, expect for the exit notification. This will allow the exit a server without an initialize request.
Until the server has responded to the `initialize` request with an `InitializeResult` the client must not sent any additional requests or notifications to the server.