Index twice
parent
a7d77d844e
commit
8ec1217ad7
|
@ -238,7 +238,8 @@ class LanguageServer extends AdvancedJsonRpc\Dispatcher
|
|||
|
||||
$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) {
|
||||
if ($this->documentLoader->isOpen($uri)) {
|
||||
continue;
|
||||
|
@ -267,13 +268,13 @@ class LanguageServer extends AdvancedJsonRpc\Dispatcher
|
|||
);
|
||||
}
|
||||
}
|
||||
|
||||
$duration = (int)(microtime(true) - $startTime);
|
||||
$mem = (int)(memory_get_usage(true) / (1024 * 1024));
|
||||
$this->client->window->logMessage(
|
||||
MessageType::INFO,
|
||||
"All $count PHP files parsed in $duration seconds. $mem MiB allocated."
|
||||
);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue