question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Vetur auto formatting not working on .vue files until disabled and then re-enabled in preferences

See original GitHub issue
  • [x ] I have searched through existing issues
  • [x ] I have read through docs
  • [x ] I have read FAQ

Info

  • 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:closed
  • Created 3 years ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
rchlcommented, Nov 5, 2020

This wasn’t fixed correctly. The format of the registerCapability message is invalid. I’ll try to submit PR for this.

1reaction
lloydjatkinsoncommented, Nov 2, 2020

This problem started for me when I updated VS Code, the release notes indicate they have changed ESLint settings: https://code.visualstudio.com/updates/v1_50#_eslint

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found