diff --git a/src/LanguageServer.php b/src/LanguageServer.php index 939bc99..8066b24 100644 --- a/src/LanguageServer.php +++ b/src/LanguageServer.php @@ -109,8 +109,8 @@ 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 diff --git a/tests/LanguageServerTest.php b/tests/LanguageServerTest.php index 272c458..2e0fb4e 100644 --- a/tests/LanguageServerTest.php +++ b/tests/LanguageServerTest.php @@ -68,7 +68,7 @@ class LanguageServerTest extends TestCase }); $server = new LanguageServer($input, $output); $capabilities = new ClientCapabilities; - $server->initialize(getmypid(), $capabilities, realpath(__DIR__ . '/../fixtures')); + $server->initialize($capabilities, realpath(__DIR__ . '/../fixtures'), getmypid()); $promise->wait(); } @@ -116,7 +116,7 @@ class LanguageServerTest extends TestCase $capabilities = new ClientCapabilities; $capabilities->xfilesProvider = true; $capabilities->xcontentProvider = true; - $server->initialize(getmypid(), $capabilities, $rootPath); + $server->initialize($capabilities, $rootPath, getmypid()); $promise->wait(); $this->assertTrue($filesCalled); $this->assertTrue($contentCalled);