volarjs / services

MIT License
124 stars 25 forks source link

services in this repo do not work since vue-offical v2 #82

Open kingyue737 opened 3 months ago

kingyue737 commented 3 months ago

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