Fixes
parent
f2925a2650
commit
b554ec5e98
|
@ -162,13 +162,12 @@ class LanguageServer extends AdvancedJsonRpc\Dispatcher
|
||||||
private function indexProject()
|
private function indexProject()
|
||||||
{
|
{
|
||||||
coroutine(function () {
|
coroutine(function () {
|
||||||
$textDocuments = $this->client->workspace->xGlob('**/*.php');
|
$textDocuments = yield $this->client->workspace->xGlob('**/*.php');
|
||||||
$count = count($textDocuments);
|
$count = count($textDocuments);
|
||||||
|
|
||||||
$startTime = microtime(true);
|
$startTime = microtime(true);
|
||||||
|
|
||||||
foreach ($textDocuments as $i => $textDocument) {
|
foreach ($textDocuments as $i => $textDocument) {
|
||||||
|
|
||||||
// Give LS to the chance to handle requests while indexing
|
// Give LS to the chance to handle requests while indexing
|
||||||
Loop\tick();
|
Loop\tick();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue