Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

headwind.prependCustomClasses not respected in "sort workspace" command #210

Open
JacobCrofts opened this issue May 7, 2024 · 0 comments

Comments

@JacobCrofts
Copy link

JacobCrofts commented May 7, 2024

Describe the bug

With this setting: "headwind.prependCustomClasses": true, the VSCode command Sort Tailwind CSS Classes on Entire Workspace does not respect the "prepend" setting. Instead, custom classes are sorted to the end of the CSS class list.

To Reproduce

Add this setting:

"headwind.prependCustomClasses": true

In any project with custom classes, open an HBS file with a mix of CSS classes, both custom and non-custom, and run the Sort Tailwind CSS Classes command. The CSS classes sort correctly, with the custom classes in the front.

Now run Sort Tailwind CSS Classes on Entire Workspace. The CSS classes are no longer sorted correctly.

Expected behavior

The results of the two commands should be the same, and the prependCustomClasses config option should be respected.

Desktop (please complete the following information):

  • OS: macOS 14.4.1 (23E224)
  • Version 1.7.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant