Skip to content

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

Closed

Description

@CS-Birb

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

Activity

  1. added
    bugSomething isn't working
    good reproduction ✨This issue provides a good reproduction, we will be able to investigate it first
    on Mar 11, 2024
  2. fengjac commented on Mar 15, 2024

    @fengjac

    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

  3. added a commit that references this issue on Mar 20, 2024
    2a77941
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood reproduction ✨This issue provides a good reproduction, we will be able to investigate it first

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions