nextui-org / tailwind-variants

🦄 Tailwindcss first-class variant API
https://tailwind-variants.org
MIT License
2.42k stars 70 forks source link

IntelliSense not working on .ts file #117

Closed adirizky54 closed 1 year ago

adirizky54 commented 1 year ago

Describe the bug IntelliSense not working when i try to create seperate style on .ts files

To Reproduce Steps to reproduce the behavior:

  1. Follow the documentation instructions to enable autocomplete.
  2. Create .ts file that contain function tv
  3. Notice that the regex loses its reference and stops autocompleting any other available classes.

Expected behavior It would be expected that autocomplete works normally.

Screenshots

Screenshot 2023-10-22 at 01 13 42 Screenshot 2023-10-22 at 01 13 53
mskelton commented 1 year ago

Might be related to this: https://github.com/tailwindlabs/tailwindcss-intellisense/issues/868

alex-reinfoce commented 1 year ago

It works for me while I use vscode.

{
    "tailwindCSS.experimental.classRegex": ["[\"'`](.*?)[\"'`]"]
}
image
adirizky54 commented 1 year ago

Thanks @Alex-Programmer-Bro i just try that config, now it's work!