theron-wang / VS2022-Editor-Support-for-Tailwind-CSS

Unofficial VS2022 Tailwind CSS extension for IntelliSense, linting, sorting, and more to enhance the development experience in Visual Studio 2022.
https://marketplace.visualstudio.com/items?itemName=TheronWang.TailwindCSSIntellisense
MIT License
86 stars 5 forks source link

Intellisense is not working in .jsx file despite having configuring it. #35

Closed Surimiii closed 6 months ago

Surimiii commented 6 months ago

Hello,

I'm not sure if this is an issue or if I did something wrong. I follow the installation/configuration step in the getting started part, the intellisense works fine for html files, but not inside jsx files. Here is my tailwind.config.js file :

/* @type {import('tailwindcss').Config} / export default { content: ["./*/.{html,js,ts,jsx,tsx}"], theme: { extend: {}, }, plugins: [], }

I tried both html and jsx at same level, only html works. I created a React and ASP.NET Core javascript project template.

I started from scratch several times, reading the instructions carefully from github and also on tailwind website, but without success. Is is implemented in the extension ? Thanks for your reply, sorry to bother you with that.

Regards,

Jérémy

theron-wang commented 6 months ago

At the moment, the extension does not support intellisense for jsx files. Sorry about the confusion. I’m looking to add support in the future though, and I’ll update this issue once I do.

Thanks for letting me know!

On Tue, Feb 13, 2024 at 11:16 AM Surimiii @.***> wrote:

Hello,

I'm not sure if this is an issue or if I did something wrong. I follow the installation/configuration step in the getting started part, the intellisense works fine for html files, but not inside jsx files. Here is my tailwind.config.js file :

/** @type https://github.com/type {import('tailwindcss').Config}

*/ export default { content: ["./*/.{html,js,ts,jsx,tsx}"], theme: { extend: {}, }, plugins: [], }

I tried both html and jsx at same level, only html works. I created a React and ASP.NET Core javascript project template.

I started from scratch several times, reading the instructions carefully from github and also on tailwind website, but without success. Is is implemented in the extension ? Thanks for your reply, sorry to bother you with that.

Regards,

Jérémy

— Reply to this email directly, view it on GitHub https://github.com/theron-wang/VS2022-Editor-Support-for-Tailwind-CSS/issues/35, or unsubscribe https://github.com/notifications/unsubscribe-auth/APRLLKYFLQHETFGTETPHSRDYTOGUFAVCNFSM6AAAAABDGZI2KSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGEZTENRYHA4DMMA . You are receiving this because you are subscribed to this thread.Message ID: @.*** com>

theron-wang commented 6 months ago

Sorry about the late response! I just looked into the issue, and Visual Studio doesn't seem to allow extensions to modify its IntelliSense behavior for .jsx and .tsx files. Unfortunately, this is out of my control, so I won't be able to add support at the moment. If I eventually do find a solution, I will make sure to update here, but I do not have high hopes for that.

theron-wang commented 3 months ago

I did find a solution to this issue - jsx and tsx files should now have support in 1.4.0. Sorry about the delay!