diff --git a/src/LanguageServer.php b/src/LanguageServer.php index 8066b24..761b1a3 100644 --- a/src/LanguageServer.php +++ b/src/LanguageServer.php @@ -88,8 +88,7 @@ class LanguageServer extends AdvancedJsonRpc\Dispatcher $e ); } - // Only send a Response for a Request - // Notifications do not send Responses + // Only send a Response for a Request // Notifications do not send Responses if (AdvancedJsonRpc\Request::isRequest($msg->body)) { if ($error !== null) { $responseBody = new AdvancedJsonRpc\ErrorResponse($msg->body->id, $error); @@ -109,8 +108,7 @@ class LanguageServer extends AdvancedJsonRpc\Dispatcher * * @param ClientCapabilities $capabilities The capabilities provided by the client (editor) * @param string|null $rootPath The rootPath of the workspace. Is null if no folder is open. - * @param int|null $processId The process Id of the parent process that started the server. Is null if the process has not been started - * by another process. If the parent process is not alive then the server should exit (see exit notification) its process. + * @param int|null $processId The process Id of the parent process that started the server. Is null if the process has not been started by another process. If the parent process is not alive then the server should exit (see exit notification) its process. * @return InitializeResult */ public function initialize(ClientCapabilities $capabilities, string $rootPath = null, int $processId = null): InitializeResult