vscode-php-sniffer
vscode-php-sniffer copied to clipboard
Allow me to specify which php binary to use
Is your feature request related to a problem? Please describe. Because of our dev setup we have scripts in place that are symlinked to user/local/bin and run whatever php code you want inside our kubernetes environment. This is great and all, but has its challenges for an extension like this, because the only way to get this extension to work would be to add php-code-sniffer to the shared repo I'm currently working. But since it's just me who wants to use phpcs I do not want to pollute the repo unnecessarily.
Describe the solution you'd like It would therefore be nice, if we could specify which php binary to use by specifiying a path.
Describe alternatives you've considered Hacking around in our dev setup, adding it to the repo.
Could use that too @wongjn 🙏
Tried making an alias of php
in my powershell profile, but it's only available in the terminal so it doesn't work for the extension.
Tried setting up "php.executablePath"
in settings.json but it is ignored:
`php' is not recognized as an internal or external command, operable program or batch file.
The only way is to change environment variables, but this can mess things up when switching between different php versions for other software.
If not with its own setting (eg. "phpSniffer.phpExecutablePath"
), the extenstion should at least use "php.executablePath"
if it's set.