Vetur auto formatting not working on .vue files until disabled and then re-enabled in preferences
See original GitHub issueInfo
- Platform: macOS Catalina
- Vetur version: 0.28.0
- VS Code version: 1.50.1
Problem
After launching VSCode, Vetur does not format .vue files until going into vscode preferences > extensions > vetur > toggle Enable/Disable the Vetur document formatter
off and then on again. After toggling, it works as expected.
Output from panel, both before and after toggling the mentioned setting so it appears Vetur is loaded when VSCode launches:
Loaded bundled typescript@4.0.2.
Vetur initialized
Reproducible Case
Unsure how I can reproduce this, but there is at least one other user on the Discord vueland eslint channel who has the same/similar problem.
Issue Analytics
- State:
- Created 3 years ago
- Comments:13 (6 by maintainers)
Top Results From Across the Web
Vetur auto formatting not working on .vue files until disabled and ...
Vetur auto formatting not working on .vue files until disabled and then re-enabled in preferences.
Read more >VSCode prettier/vue formatting settings don't work properly
In my case, the problem was solved by: Turning off all the Vetur formatters and disabling all formatting capabilities of Vetur. Enabled ESLint ......
Read more >CHANGELOG.md · igiting/vetur - Gitee.com
Fix a formatting bug for vue-html. #99. Disable unused language features. Check file is included in tsconfig/jsconfig before providing language features to ...
Read more >Formatting | Vetur - GitHub Pages
Vetur only has a "whole document formatter" and cannot format arbitrary ranges. As a result, only the Format Document command is available. The...
Read more >How I Resolved Vue.js, VSCode, Vetur, Prettyhtml, and ...
Here are the issues with Prettyhtml, Prettier and VS Code. ... So, when open a .vue file in VS Code and Format Document...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This wasn’t fixed correctly. The format of the
registerCapability
message is invalid. I’ll try to submit PR for this.