soderlind / vscode-phpcbf

PHP Code Beautifier and Fixer for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=persoderlind.vscode-phpcbf
GNU General Public License v3.0
28 stars 10 forks source link

executablePath in docker container #31

Open danielcosta opened 5 years ago

danielcosta commented 5 years ago

Hello,

I'm guessing if its possible to run phpcbf in vscode through a docker container (or image). I'm trying to configure phpcbf.executablePath with value below but it's not working:

"phpcbf.executablePath": "docker exec -it name_of_container /bin/sh -c '/var/www/html/vendor/bin/phpcbf \"$@\"' -- ",

Giving me this error:

PHPCBF: spawn docker exec -it name_of_container /bin/sh -c '/var/www/html/vendor/bin/phpcbf "$@"' -- ENOENT. executablePath not found.

Could anyone help me make this work?