From f4dfcb1649bf6fc09a1d2c583947bb8bcc583a46 Mon Sep 17 00:00:00 2001 From: Dirk Baeumer Date: Tue, 10 Apr 2018 10:32:17 +0200 Subject: [PATCH] Fixes #425: Clarification: can server send telemetry/event prior to initialization? --- specification.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification.md b/specification.md index 35ed60c..87fb61e 100644 --- a/specification.md +++ b/specification.md @@ -713,9 +713,9 @@ The initialize request is sent as the first request from the client to the serve * For a request the response should be an error with `code: -32002`. The message can be picked by the server. * Notifications should be dropped, except for the exit notification. This will allow the exit of a server without an initialize request. -Until the server has responded to the `initialize` request with an `InitializeResult`, the client must not send any additional requests or notifications to the server. +Until the server has responded to the `initialize` request with an `InitializeResult`, the client must not send any additional requests or notifications to the server. In addition the server is not allowed to send any requests or notications to the client until it has responded with an `InitializeResult`, with the exception that during the `initialize` request the server is allowed to send the notifications `window/showMessage`, `window/logMessage` and `telemetry/event` as well as the `window/showMessageRequest` request to the client. -During the `initialize` request the server is allowed to send the notifications `window/showMessage`, `window/logMessage` and `telemetry/event` as well as the `window/showMessageRequest` request to the client. The `initialize` request may only be sent once. +The `initialize` request may only be sent once. _Request_: * method: 'initialize'