support multiple path of executablePath in config #110
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add a feature:
php-cs-fixer.executablePath
in the config could be a path list string with separator;
, just likephp-cs-fixer.config
.For example, if
php-cs-fixer.executablePath
orphp-cs-fixer.executablePathWindows
is set to"${workspaceRoot}\\vendor\\bin\\php-cs-fixer.bat;D:\\.global\\vendor\\bin\\php-cs-fixer.bat;${extensionPath}\\php-cs-fixer.phar"
, then...${workspaceRoot}\\vendor\\bin\\php-cs-fixer.bat
exists, and use it if it exists.D:\\.global\\vendor\\bin\\php-cs-fixer.bat
exists, and use it if it exists.${extensionPath}\\php-cs-fixer.phar
, and use it if it exists.I think this could be useful, because some project has OWN
php-cs-fixer
(such as v2.16.0 package + v2.16.0 .php_cs) under its folder, but some project may not, then it could do a fallback, use a GLOBALphp-cs-fixer
(such as v3.0.x-dev package + v3.0.x-dev .php_cs).