-
-
Notifications
You must be signed in to change notification settings - Fork 450
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.vue files cannot be formatted #2729
Comments
I have the same problem and it doesn't work on |
I experienced the same problem also with It happens with version v9.9.0. I installed the previous version (v9.8.0) and the issue disappeared. |
Same issue. |
This bug is missing information needed to diagnose the problem. Please see our guide on how to open a good issue and provide the missing information. Most configuration-related issues can only be resolved by providing a full repro. If you don't provide a sample to reproduce your issue, your bug will most likely be closed. |
Volar will find all corresponding formatting tools according to configurations. By default, these formaters are:
Seems like, we can not change the behaviour of Volar by setting Back to this issue, if you want to use prettier to format Make sure:
Edit: sorry, seems like the paragraph above I wrote makes nonsense totally. To mount Volar extension, and format
That is my poor insights. Hope this helps. |
Facing this after a recent VS Code update. Had to downgrade the extension to version 8.2.0 (9.8.0 wasn't enough for me) until it started to work. I'm on Windows 11 and WSL2 Ubuntu 22.04. Willing to help with debugging. |
I faced same problem, But when I reboot my pc. All problem was fixed. |
Same error for me, if downgrade to Prettier version 9.14.0 works fine. |
Summary
Version 9.9.0, vue files cannot be formatted when a configuration file exists in the project directory
Actual result
The text was updated successfully, but these errors were encountered: