1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 20:34:47 +01:00

Delay loading stubs until after first scan;

This commit is contained in:
Matthew Brown 2018-11-09 00:46:39 -05:00
parent 2065e0129e
commit 10a0f19870
2 changed files with 2 additions and 2 deletions

View File

@ -247,8 +247,6 @@ class ProjectChecker
$this->file_reference_provider->loadReferenceCache();
$this->codebase->enterServerMode();
$this->config->visitStubFiles($this->codebase, $this->debug_output);
$cwd = getcwd();
if (!$cwd) {

View File

@ -165,6 +165,8 @@ class LanguageServer extends AdvancedJsonRpc\Dispatcher
$this->project_checker->codebase->scanFiles($this->project_checker->threads);
$this->project_checker->config->visitStubFiles($this->project_checker->codebase, false);
if ($this->textDocument === null) {
$this->textDocument = new TextDocument(
$this,