tailwindlabs / prettier-plugin-tailwindcss

A Prettier plugin for Tailwind CSS that automatically sorts classes based on our recommended class order.
MIT License
5.41k stars 128 forks source link

Webstorm confused after classes are reordered #306

Open bettiolo opened 1 month ago

bettiolo commented 1 month ago

What version of prettier-plugin-tailwindcss are you using?

"prettier-plugin-tailwindcss": "0.5.14"

What version of Tailwind CSS are you using?

"tailwindcss": "3.4.3",

What version of Node.js are you using?

v20.15.0

What package manager are you using?

npm

What operating system are you using?

macOS

Reproduction URL

On IDE

Describe your issue

This is the original, when I hover the mouse on my-24 I see the correct tooltip:

Screenshot 2024-07-19 at 12 38 07

Then I moved the my-24 class to the end:

Screenshot 2024-07-19 at 12 40 13

When I saved, the plugin shifted back the class and then the tooltips are not working anymore, when I hover my-24, I get the tooltip for flex, old position of classes pre-save:

Screenshot 2024-07-19 at 12 38 43
thecrypticace commented 1 month ago

This seems like it may be a caching issue in WebStorm so not likely something we can fix but I'll look into it