Skip to content

Class detection hover box shifted when using class regex #299

@michaelschufi

Description

@michaelschufi

Hi

I'm using the following class regex setting:

"tailwindCSS.experimental.classRegex": [
    ":(?:\\s)*?[\"'`]([^\"'`]*).*?,",
  ],

Which matches everything inside the single quotes as you can see in the screenshot below.
image

Unfortunately, if the string literal starts on the new line the class detection hover box is shifted to the left:
image

This makes it very hard to read. Additionally, the autocomplete isn't working anymore, because of the offset:

Not OK:
image

OK:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions