Index twice
parent
a7d77d844e
commit
8ec1217ad7
|
@ -238,7 +238,8 @@ class LanguageServer extends AdvancedJsonRpc\Dispatcher
|
||||||
|
|
||||||
$startTime = microtime(true);
|
$startTime = microtime(true);
|
||||||
|
|
||||||
// Parse PHP files
|
foreach (['Collecting definitions and static references', 'Collecting dynamic references'] as $run) {
|
||||||
|
$this->client->window->logMessage(MessageType::INFO, $run);
|
||||||
foreach ($uris as $i => $uri) {
|
foreach ($uris as $i => $uri) {
|
||||||
if ($this->documentLoader->isOpen($uri)) {
|
if ($this->documentLoader->isOpen($uri)) {
|
||||||
continue;
|
continue;
|
||||||
|
@ -267,13 +268,13 @@ class LanguageServer extends AdvancedJsonRpc\Dispatcher
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$duration = (int)(microtime(true) - $startTime);
|
$duration = (int)(microtime(true) - $startTime);
|
||||||
$mem = (int)(memory_get_usage(true) / (1024 * 1024));
|
$mem = (int)(memory_get_usage(true) / (1024 * 1024));
|
||||||
$this->client->window->logMessage(
|
$this->client->window->logMessage(
|
||||||
MessageType::INFO,
|
MessageType::INFO,
|
||||||
"All $count PHP files parsed in $duration seconds. $mem MiB allocated."
|
"All $count PHP files parsed in $duration seconds. $mem MiB allocated."
|
||||||
);
|
);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue