1
0
Fork 0

Make $capabilities initialize param optional

Eclipse Che does not pass ClientCapabilities in InitializeParams. This
works well with other language server, but not with this one.

The issue is resolved by making the $capabilities param optional.
pull/6/head
Kaloyan Raev 2016-09-02 15:18:22 +03:00
parent 57604e61f1
commit 7d90df69f4
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ class LanguageServer extends \AdvancedJsonRpc\Dispatcher
* @param ClientCapabilities $capabilities The capabilities provided by the client (editor)
* @return InitializeResult
*/
public function initialize(string $rootPath, int $processId, ClientCapabilities $capabilities): InitializeResult
public function initialize(string $rootPath, int $processId, ClientCapabilities $capabilities = null): InitializeResult
{
$serverCapabilities = new ServerCapabilities();
// Ask the client to return always full documents (because we need to rebuild the AST from scratch)