1
0
Fork 0

Put description in one line

pull/178/head
Felix Becker 2016-11-22 15:58:47 +01:00 committed by GitHub
parent 41e68decd0
commit 7c5ca5eb6a
1 changed files with 2 additions and 4 deletions

View File

@ -88,8 +88,7 @@ class LanguageServer extends AdvancedJsonRpc\Dispatcher
$e $e
); );
} }
// Only send a Response for a Request // Only send a Response for a Request // Notifications do not send Responses
// Notifications do not send Responses
if (AdvancedJsonRpc\Request::isRequest($msg->body)) { if (AdvancedJsonRpc\Request::isRequest($msg->body)) {
if ($error !== null) { if ($error !== null) {
$responseBody = new AdvancedJsonRpc\ErrorResponse($msg->body->id, $error); $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 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 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 * @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.
* by another process. If the parent process is not alive then the server should exit (see exit notification) its process.
* @return InitializeResult * @return InitializeResult
*/ */
public function initialize(ClientCapabilities $capabilities, string $rootPath = null, int $processId = null): InitializeResult public function initialize(ClientCapabilities $capabilities, string $rootPath = null, int $processId = null): InitializeResult