Skip to content

Intellisense only given for first match to regex defined by classRegex in the same file #499

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
benatshippabo opened this issue Feb 26, 2022 · 2 comments · Fixed by #501
Closed

Comments

@benatshippabo
Copy link

benatshippabo commented Feb 26, 2022

What version of Tailwind CSS IntelliSense are you using?

v0.7.7

What version of Tailwind CSS are you using?

^3.0.23

What package manager are you using?

Yarn 3

What operating system are you using?

MacOS Monterey 12.2

Reproduction URL

https://github.com/benatshippabo/tailwind-vscode-bug

Describe your issue

Using the following vscode settings:

{
    "tailwindCSS.experimental.classRegex": [["/\\*tw\\*/ ([^;]*);", "'([^']*)'"]],
}

When there are multiple matches to the regex defined by classRegex in the same file, the tailwind extension only provides intellisense and autocompletion for the first match.

first match

image

second match

image

context

tailwindlabs/tailwindcss#7553 (comment)
tailwindlabs/tailwindcss#7553 (comment)
tailwindlabs/tailwindcss#7554

@bradlc
Copy link
Contributor

bradlc commented Feb 28, 2022

Hey @benatshippabo, thanks for reporting. This will be fixed in the next release 👍

@benatshippabo
Copy link
Author

benatshippabo commented Feb 28, 2022

Hey @benatshippabo, thanks for reporting. This will be fixed in the next release 👍

Oooh that was quick @bradlc, thank you!

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

Successfully merging a pull request may close this issue.

2 participants