Fixed indentation and tests
parent
09ce429836
commit
41e68decd0
|
@ -109,8 +109,8 @@ 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
|
* @param int|null $processId The process Id of the parent process that started the server. Is null if the process has not been started
|
||||||
* 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
|
||||||
|
|
|
@ -68,7 +68,7 @@ class LanguageServerTest extends TestCase
|
||||||
});
|
});
|
||||||
$server = new LanguageServer($input, $output);
|
$server = new LanguageServer($input, $output);
|
||||||
$capabilities = new ClientCapabilities;
|
$capabilities = new ClientCapabilities;
|
||||||
$server->initialize(getmypid(), $capabilities, realpath(__DIR__ . '/../fixtures'));
|
$server->initialize($capabilities, realpath(__DIR__ . '/../fixtures'), getmypid());
|
||||||
$promise->wait();
|
$promise->wait();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -116,7 +116,7 @@ class LanguageServerTest extends TestCase
|
||||||
$capabilities = new ClientCapabilities;
|
$capabilities = new ClientCapabilities;
|
||||||
$capabilities->xfilesProvider = true;
|
$capabilities->xfilesProvider = true;
|
||||||
$capabilities->xcontentProvider = true;
|
$capabilities->xcontentProvider = true;
|
||||||
$server->initialize(getmypid(), $capabilities, $rootPath);
|
$server->initialize($capabilities, $rootPath, getmypid());
|
||||||
$promise->wait();
|
$promise->wait();
|
||||||
$this->assertTrue($filesCalled);
|
$this->assertTrue($filesCalled);
|
||||||
$this->assertTrue($contentCalled);
|
$this->assertTrue($contentCalled);
|
||||||
|
|
Loading…
Reference in New Issue