-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add option to convert on save #157
Comments
Hey @onetrev Thanks for the feature request! 🥳 Just to get it right: So flow would be like this:
Should the original file be kept in this case? 🤔 Maybe it would make sense to keep |
G'day! Yes you nailed it. That's exactly what I was thinking. Most definitely the original file should be kept in this case. 100%. It wouldn't really make sense to not keep the original file was what I was thinking, since it would defeat the purpose of this option. If you didn't keep it, then once you save your original file once, it would be gone and there'd be nothing else to convert on save. 🙂 |
Cool! I will consider it an see what is possible. What if you do it like described above but additionally:
|
Awesome, thanks for considering this! Good questions. I think safety first, it should warn you about overwriting the file, unless yes you have |
It would be great! |
Hi @hilleer, is there any chance to implement this? |
Definitely. I have just been busy. PRs are also welcome but otherwise I'll try to find some time soon 🙂 🤞 |
I haven't found a better VSC extension (YAML to JSON), and this would just be icing on the cake. Thanks! |
Hi @hilleer, I just wanted to ask if this is even planned? And I just want to make sure ;) |
Yes. But I haven't had time to do it unfortunately 🕐 Pull requests are more than welcomed. |
I was thinking it would be very handy to have an option to convert current YAML file on save. I'm guessing this could help others too? My use case is I'm using this extension because working with
theme.json
to develop a large custom WP theme is a nightmare. It's much easier in YAML.I already have
keepOriginalFiles
andoverwriteExistentFiles
asalways
. I'm thinking that if the above feature is added these two should be always by default then since that would be the natural work flow right? Thanks!The text was updated successfully, but these errors were encountered: