volar-plugins
volar-plugins copied to clipboard
services in this repo do not work since vue-offical v2
Repro: https://github.com/kingyue737/volar-starter-service-v2
I've changed the config according to the docs:
module.exports = {
services: [require("volar-service-prettyhtml").create({ printWidth: 10 })],
}
and format App.vue with Vue Offical extension. Nothing happened.
Then I tried
module.exports = {
services: [
require("volar-service-prettyhtml").create({
getFormattingOptions() {
return { printWidth: 10 };
},
}),
],
};
Nothing happened again.
I also added console.log("print something"); in volar.config.js but nothing was printed in output of Vue Language Server.
I've also tried volar-service-vetur. It does not work either in my old vue2 project.
OS: Windows 11