Skip to content

Vetur cannot recongize semantic highlight #2899

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

Closed
2 of 4 tasks
libgcc opened this issue Apr 28, 2021 · 1 comment
Closed
2 of 4 tasks

Vetur cannot recongize semantic highlight #2899

libgcc opened this issue Apr 28, 2021 · 1 comment

Comments

@libgcc
Copy link

libgcc commented Apr 28, 2021

  • I have searched through existing issues
  • I have read through docs
  • I have read FAQ
  • I have tried restarting VS Code or running Vetur: Restart VLS

Info

  • Platform:
  • Vetur version:v0.31.3
  • VS Code version:1.49

Problem

I setup my semantic highlight like this:

 "editor.semanticHighlighting.enabled": true,
    // Overrides editor semantic token color and styles from the currently selected color theme.
    "editor.semanticTokenColorCustomizations": {
        "enabled": true,
        "rules": {
            "parameter": {
                "foreground": "#BC8AFF"
            },

        }
    },

for the purple paramter highlight. Both js and ts file accept the setting and show as expect:
js
ts

But the vue file dosen't take it. With inspection no semantic token type is detected:
vue

Reinstall Vetur extension cannot fix this problem, I've tried several time. Any ideas?

@yoyo930021
Copy link
Member

yoyo930021 commented May 8, 2021

Fixed in #2802
Release in next version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants