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:
parent
2065e0129e
commit
10a0f19870
@ -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) {
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user