Open nbordeau opened 5 years ago
I had same issue as you do. The problem is formatter (phpcbf) is exceeding its timeout given by vscode's settings.
Solution is 'Just increase number like 2000
or something':
Writing down for quick copy:
"editor.formatOnSaveTimeout": 2000
But I can give you better choice. Don't use this extension. Because it's not maintained for a year. Even source code at GitHub (ahead) and Vscode Marketplace (behind) is different. So applied fixes don't work neither.
"You do have to increase number anyway."
Better choice is use this extension. Much better. It just works. Also it has all cool features you can ask for. Auto finding .phpcs.xml, auto finding phpcs and phpcbf executables etc.
PHP_CodeSniffer version 3.4.2 VS Code version 1.36.1
I can format the document by using Shift+Alt+F but the onSave setting is not formatting the document.
Turned on debugging and nothing is showing in the debug console. Here are my settings:
Any ideas?