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
89 stars 5 forks source link

[Feature Request] Add css snippet inline or as a tooltip to autocomplete list #7

Closed gpshonik closed 1 year ago

gpshonik commented 1 year ago

Thank you for this extension, it was very much needed for VS 2022.

Would it be possible to add the actual css for the official tailwind classes to the auto complete as follows?

image

This is an example from the official tailwind extension for VS Code.

Thank you!

theron-wang commented 1 year ago

This is definitely a needed feature. I added it into the extension, but I did change make the CSS show up as a description instead of a suffix (as shown in this gif):

IntelliSense-Demo-1

Thanks for the suggestion!

gpshonik commented 1 year ago

Thank you very much for implementing this so quickly! After updating the extension to the latest version, I saw the auto-complete trigger briefly but then an Object reference not set to an instance of an object dialog popped up (and pops up on each subsequent key press)

[image: image.png]

Happy to provide any other details if needed.

On Tue, Aug 8, 2023 at 8:57 PM Theron Wang @.***> wrote:

This is definitely a needed feature. I added it into the extension, but I did change make the CSS show up as a description instead of a suffix (as shown in this gif):

[image: IntelliSense-Demo-1] https://user-images.githubusercontent.com/65189291/259274852-8da1be72-0918-447b-aafb-5ecac09e97f9.gif

Thanks for the suggestion!

— Reply to this email directly, view it on GitHub https://github.com/theron-wang/VS2022-Editor-Support-for-Tailwind-CSS/issues/7#issuecomment-1670543012, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALUFCN4KUCPZDK3CPSNDADXULVBTANCNFSM6AAAAAA3HEZ3PQ . You are receiving this because you authored the thread.Message ID: <theron-wang/VS2022-Editor-Support-for-Tailwind-CSS/issues/7/1670543012@ github.com>

theron-wang commented 1 year ago

Hmm.. that’s strange. I will try to test it and see if I can reproduce it. If possible, could you send the image again (it shows up as [image: image.png])?

gpshonik commented 1 year ago

Sorry about that, not sure what happened with the image.

image

Edit: if there are any logs I can provide, please let me know.

theron-wang commented 1 year ago

No worries about the image. I'm having trouble reproducing this, so is it possible if you could attach your tailwind.config.js? Also, some exceptions are logged to the 'Extensions' output window (same menu as the Build output window), so if there is anything there, could you please provide that?

I also created a new issue for this, if you could respond there: #8

Thanks!