1
0
Fork 0
pull/136/head
Felix Becker 2016-11-01 09:31:21 +01:00
parent f2925a2650
commit b554ec5e98
1 changed files with 1 additions and 2 deletions

View File

@ -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();