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] Support for `Class=""` in Razor Components. #12

Closed ApacheTech closed 1 year ago

ApacheTech commented 1 year ago

Would it be possible to add support for Blazor components that use Class="" as a parameter?

You constrain it to lowercase class= only, here: https://github.com/theron-wang/VS2022-Editor-Support-for-Tailwind-CSS/blob/main/src/Completions/Controllers/RazorCompletionController.cs#L165

A .ToLowerInvariant() on line 163 should be ok to fix it.

theron-wang commented 1 year ago

I just included this in 1.1.7.6 along with the other bug fixes. Thanks for the suggestion!