Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Syntax highlight missing on pug components since 1.0 #1977

Closed
itzaks opened this issue Oct 10, 2022 · 2 comments
Closed

Syntax highlight missing on pug components since 1.0 #1977

itzaks opened this issue Oct 10, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@itzaks
Copy link

itzaks commented Oct 10, 2022

One feature that I really enjoyed in previous versions was the syntax highlighting of custom vue components being colored yellow when using volar, pug and the One Dark Pro color theme. After 1.0 and the introduction of @volar/vue-language-plugin-pug, this seems to have broken. All custom components are now colored the same as native html elements.

@dargmuesli
Copy link

Check the changelogs for a migration path: https://github.com/johnsoncodehk/volar/blob/master/CHANGELOG.md#100-alpha0-2022916

@itzaks
Copy link
Author

itzaks commented Oct 11, 2022

I've added everything according to the migration path. The components do resolve, but they are not highlighted when using pug. If I switch to pure HTML they are highlighted. Also rolling back to < 1.0 they are highlighted too.

devDependencies

    "@volar/pug-language-service": "^1.0.3",
    "@volar/vue-language-plugin-pug": "^1.0.3",

tsconfig.json

  "extends": "./.nuxt/tsconfig.json",
  "vueCompilerOptions": {
    "plugins": [
      "@volar/vue-language-plugin-pug"
    ]
  },
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants