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

Hover tooltips for Tailwind classes show duplicate tips #17

Closed retailonline closed 1 year ago

retailonline commented 1 year ago

When hovering over a class, the tooltip shows the same tips four times.

hover-tooltips

theron-wang commented 1 year ago

This should be fixed with the latest update. Thank you for reporting this bug!

retailonline commented 1 year ago

It's still the same problem for me. I've downloaded your updated version, disabled and enabled the extension, uninstalled and reinstalled it, but the same four duplicate rows still show up when hovering. I'm using the latest Visual Studio version, 17.7.3.

screen

theron-wang commented 1 year ago

Sorry, do you think you could provide your tailwind.config.js so I can reproduce this?

retailonline commented 1 year ago

Ofcourse, here it is:

/** @type {import('tailwindcss').Config} */ module.exports = { content: [ './Pages/**/*.cshtml'], theme: { extend: {}, }, plugins: [], }

retailonline commented 1 year ago

Hi again!

For your information, after updating to the latest build this happen:

Untitled-2

theron-wang commented 1 year ago

Ok, thanks for letting me know. I’ll see what I can do once I have some time.

theron-wang commented 1 year ago

I was unable to reproduce either one of the issues, but I did make some changes to try to fix the issue.

Especially regarding the performance issue, I changed how the package was initialized, but if you still encounter significant performance hits, please let me know.

Thanks!

retailonline commented 1 year ago

After installing your new update, everything is fine: no duplicated tooltips when hovering over a class, nor is Visual Studio complaining about slow performance. Thank you for creating this awesome extension!

Untitled-2

theron-wang commented 1 year ago

No problem! Happy to hear that.