From 4855fd0b9ebbd4d9d772358f05b8a186f3ee8779 Mon Sep 17 00:00:00 2001 From: Joas8211 <6217024+joas8211@users.noreply.github.com> Date: Sat, 21 Sep 2019 10:55:38 +0300 Subject: [PATCH] Capture initialized notification https://microsoft.github.io/language-server-protocol/specification#initialized --- src/LanguageServer.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/LanguageServer.php b/src/LanguageServer.php index 38dfeb1e..7581c3b9 100644 --- a/src/LanguageServer.php +++ b/src/LanguageServer.php @@ -292,6 +292,16 @@ public function initialize(ClientCapabilities $capabilities, string $rootPath = }); } + /** + * The initialized notification is sent from the client to the server after the client received the result of + * the initialize request but before the client is sending any other request or notification to the server. + * The server can use the initialized notification for example to dynamically register capabilities. + * The initialized notification may only be sent once. + */ + public function initialized() { + // Do nothing + } + /** * The shutdown request is sent from the client to the server. It asks the server to shut down, but to not exit * (otherwise the response might not be delivered correctly to the client). There is a separate exit notification that