Report diagnostics during indexing
parent
9b364a5a13
commit
4cdd2eff9a
|
@ -251,7 +251,10 @@ class LanguageServer extends AdvancedJsonRpc\Dispatcher
|
||||||
"Parsing file $i/$count: {$uri}"
|
"Parsing file $i/$count: {$uri}"
|
||||||
);
|
);
|
||||||
try {
|
try {
|
||||||
yield $this->documentLoader->load($uri);
|
$document = yield $this->documentLoader->load($uri);
|
||||||
|
if (!$document->isVendored()) {
|
||||||
|
$this->client->textDocument->publishDiagnostics($uri, $document->getDiagnostics());
|
||||||
|
}
|
||||||
} catch (ContentTooLargeException $e) {
|
} catch (ContentTooLargeException $e) {
|
||||||
$this->client->window->logMessage(
|
$this->client->window->logMessage(
|
||||||
MessageType::INFO,
|
MessageType::INFO,
|
||||||
|
|
Loading…
Reference in New Issue