Skip to content

Commit

Permalink
Add functionality for rootUri
Browse files Browse the repository at this point in the history
  • Loading branch information
JJK96 committed Sep 9, 2018
1 parent 18c6ccd commit 4063337
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 1 addition & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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 4063337

Please sign in to comment.