Open zhou-tao opened 2 years ago
This is happening for me as well with v0.21.6
.
Hi again, the auto sort does not work in variant groups either.
you can also track https://github.com/alexanderniebuhr/prettier-plugin-unocss (which I would call the windi css version)
@alexanderniebuhr Why are you closing issues related to this? This is a problem that I'm having with the plugin as well. Saying that PRs are welcome is a perfectly reasonable response in open source, but closing the issue as completed sends the signal that the issue has been addressed.
@lucperkins I closed this, because the plan is to drop the current implementation in favour of something new. But I will reopen this, and let other people contribute if they thing they can fix the current implementation.
Also had issues with sortOnSave
where it just removes some classes from the parenthesis, as you can see in this commit :
This led to some hours of understanding "why my elements aren't looking like they were before" :sob:
When I enable
sortOnSave
, then using variant-groups to pass two or more properties inside parentheses: A space is automatically appended to the end of the lineBut it didn't happen after I tried to pass only one property, like this:
hope it can be resolved! thanks