junstyle / vscode-php-cs-fixer

PHP CS Fixer extension for VS Code
https://marketplace.visualstudio.com/items?itemName=junstyle.php-cs-fixer
MIT License
356 stars 44 forks source link

Block loses indentation when close brace is typed #208

Open neekfenwick opened 1 year ago

neekfenwick commented 1 year ago

As discussed at https://stackoverflow.com/questions/77242055/vscode-removes-indentation-when-typing-close-brace-in-files-considered-php

When I type a closing brace in an indented block of code, the code is unindented to zero. Disabling this extension fixes the problem. See the animations on the Stackoverflow post above.

Reproducing the problem has been slightly erratic so I'm not 100% sure, but as in the animations on that stackoverflow post php-cs-fixer certainly seems to be the culprit.

Anyone else getting this behaviour?

nsrosenqvist commented 11 months ago

Issue also reported here: https://github.com/junstyle/vscode-php-cs-fixer/issues/209

neekfenwick commented 11 months ago

Issue also reported here: #209

Thanks @nsrosenqvist ! How nice of them to check existing Issues before raising one :P