Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Closed
kingyue737 opened this issue Mar 7, 2024 · 1 comment
Closed

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

kingyue737 opened this issue Mar 7, 2024 · 1 comment

Comments

@kingyue737
Copy link
Contributor

kingyue737 commented Mar 7, 2024

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

@kingyue737 kingyue737 changed the title services in this repo do not work since vue-offical v2 services in this repo do not work since vue-official v2 Jul 11, 2024
@kingyue737
Copy link
Contributor Author

vue-official v2 no longer supports volar.config.js

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant