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

Stops working when used with git lens #33

Closed ainsofs closed 5 years ago

ainsofs commented 5 years ago

Hi,

Im using phpcbf for drupal development using the drupal/coder composer library. When I turn on git lens my code is not formatted correctly (using Format Document option of vscode). When I disable git lens it works again as expected. I dont know if this is a compatibility issue with here or git lens so posting this issue on both issue queues.

My machine Windows 10 Pro 64 bit

My vscode settings

  "phpcbf.enable": true,
  "phpcbf.executablePath": "./vendor/squizlabs/php_codesniffer/bin/phpcbf.bat",
  "phpcbf.documentFormattingProvider": true,
  "phpcbf.onsave": false,
  "phpcbf.standard": "C:\\Users\\ainsofs\\AppData\\Roaming\\Composer\\vendor\\drupal\\coder\\coder_sniffer\\Drupal",
  "[php]": {
    "editor.defaultFormatter": "persoderlind.vscode-phpcbf"
  },
ghost commented 5 years ago

Resolved in gitlens 9.9.3