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

Semantic Tokens are misplaced with language-plugin-pug #4070

Closed
CS-Birb opened this issue Mar 11, 2024 · 1 comment
Closed

Semantic Tokens are misplaced with language-plugin-pug #4070

CS-Birb opened this issue Mar 11, 2024 · 1 comment
Labels
bug Something isn't working good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first

Comments

@CS-Birb
Copy link

CS-Birb commented Mar 11, 2024

Pug performance with the latest language-tools and language-plugin-pug is great, but the new semantic tokens handling seems to be misapplied.

A few visual examples:

In pug
image

vs HTML
image

To try and create a minimal reproduction, I've generated the vue-ts vite template and converted the two components to pug templates.
https://stackblitz.com/edit/vitejs-vite-f7dgtx

In HTML we have the HelloWorld component highlighted as expected.
image

While in pug the semantic token is instead applied over the div and a tags.
image


Win10
Vscode 1.87.1
@vue/language-plugin-pug 2.0.6

@johnsoncodehk johnsoncodehk added bug Something isn't working good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first labels Mar 11, 2024
@fengjac
Copy link

fengjac commented Mar 15, 2024

Same issue.
The color of component name should be green

Vscode 1.87.2
@vue/language-plugin-pug 2.0.6
Vue.volar 2.0.6

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first
Projects
None yet
Development

No branches or pull requests

3 participants