Hello!
Very often, when I save a file (Ctrl +S), nothing is apparently happening (the file remains unsaved), and only after a few retries (pressing Ctrl + S multiple times) the file finally saves.
This happens especially when files are large.
If I disable the "onSave" formatting event, this no longer happens, and files save instantly.
Do you have any suggestion for improvement, to speed this up?
Or, is one of these rules known to be very slow? I could consider disabling that one.
Thank you very much!
(new PhpCsFixer\Config())
->setParallelConfig(PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect())
->setIndent("\t")
->setLineEnding("\n")
->setRules([
'array_syntax' => true,
'assign_null_coalescing_to_coalesce_equal' => true,
'constant_case' => true,
'encoding' => true,
'indentation_type' => true,
'is_null' => true,
'list_syntax' => true,
'modernize_strpos' => true,
'no_trailing_whitespace' => true,
'no_whitespace_in_blank_line' => true,
'ordered_imports' => true,
'ternary_to_null_coalescing' => true,
])
->setFinder(
PhpCsFixer\Finder::create()
->exclude('vendor')
->in(__DIR__)
);
Hello!
Very often, when I save a file (Ctrl +S), nothing is apparently happening (the file remains unsaved), and only after a few retries (pressing Ctrl + S multiple times) the file finally saves.
This happens especially when files are large.
If I disable the "onSave" formatting event, this no longer happens, and files save instantly.
Do you have any suggestion for improvement, to speed this up?
Or, is one of these rules known to be very slow? I could consider disabling that one.
Thank you very much!