Skip schema validation when running completion for increased bootstrap performance
parent
3f848cdb9a
commit
ce45d15bb5
|
@ -704,6 +704,10 @@ class Factory
|
|||
*/
|
||||
private static function validateJsonSchema(?IOInterface $io, $fileOrData, int $schema = JsonFile::LAX_SCHEMA, ?string $source = null): void
|
||||
{
|
||||
if (Platform::isInputCompletionProcess()) {
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
if ($fileOrData instanceof JsonFile) {
|
||||
$fileOrData->validateSchema($schema);
|
||||
|
|
Loading…
Reference in New Issue