Skip to content

Commit

Permalink
fix: support rootUri (#672)
Browse files Browse the repository at this point in the history
  • Loading branch information
JJK96 authored and felixfbecker committed Nov 11, 2018
1 parent c7d25c7 commit 680f430
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/LanguageServer.php
Expand Up @@ -165,8 +165,11 @@ public function __construct(ProtocolReader $reader, ProtocolWriter $writer)
* @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 Promise <InitializeResult>
*/
public function initialize(ClientCapabilities $capabilities, string $rootPath = null, int $processId = null): Promise
public function initialize(ClientCapabilities $capabilities, string $rootPath = null, int $processId = null, string $rootUri = null): Promise
{
if ($rootPath === null) {
$rootPath = uriToPath($rootUri);
}
return coroutine(function () use ($capabilities, $rootPath, $processId) {

if ($capabilities->xfilesProvider) {
Expand Down

0 comments on commit 680f430

Please sign in to comment.