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
Auto-formatting of sass in Vue files via sass-formatter
doesn't work
#666
Comments
Third-party formatter would be support by plugin API (#185). |
@johnsoncodehk Hmmm, ideally we would want the formatting feature natively built into Volar. Expecting users to install both Volar and Vetur and then set Vetur to only formatting seems a little bit complex for newer developers, and especially newer developers are the ones that benefit most from auto-formatting of the style section in Vue files. Do you have no plans to change your thought train on this feature? I'm interested to know your thoughts. Best regards, |
ps: I see that you want to implement it via a Volar plugin? interested how newbie friendly this can be. Is this like a VSCode plugin to complement the Volar extension? Or how would this work? ps2: I become a sponsor 🎉 |
volar was not developed for the purpose of replacing vetur. I have strong subjective opinions on ide support, I just design volar's features in the correct way in my view. We will not implement a feature because vetur have it, so volar many features designs are actually very different to vetur. If you want to know why I think so:
Adding features is simple usually, but sometimes this will increase the complexity of the project, the increase in complexity will increase the difficulty of the project's maintenance exponentially. Therefore, in order to prevent the project becoming a monster, it is more important to "do not add some features" correctly. (Of course this requires a comprehensive consideration of many factors)
I hope it to be like this. https://docs.unity3d.com/Manual/upm-ui.html
Thank you! |
@johnsoncodehk I understand the design philosophy. Is there any way we can keep this issue open until it's possible to have auto-formatting via some plugin? Much appreciated. I think we can consider opening this issue and attaching issue-hunt goal as well. So people can come and put money in towards this feature specifically. Auto-formatting of the vue files with |
If you just want sass formatting out of the box instead of a configurable formatter, I can actually simply add it in next version. And move it out after implemented plugin api. |
that would be very very very much appreciated! I don't care so much about configuring. The formatter that Vetur uses for So if this can be run on The Then, since Volar will be the one doing formatting for Vue files, we need to set
|
Added in 1cc570d |
For Vetur, we have set up:
Which then formats the
style
section of a Vue file using thatsass-formatter
.Eg.
becomes:
Volar seems to not have this Feature?
For our use case this would be required for Volar to be able to replace Vetur in our projects. : )
Thank you very much.
The text was updated successfully, but these errors were encountered: