adamvoss/vscode-yaml

Comments removed when formatting

krazik opened this issue · 8 comments

I can't figure out how to stop it but this plugin removes all comments # Foo from my yaml files.

I recognize this is not an ideal solution, but the solution is to not use the code formatting functionality.

The underlying library that provides formatting does not (and will not) support comments. If another workable library can be found that preserves comments, I would be happy to switch.

yeah that sucks I obviously understand too. thanks for the reply.

-Ry

Reopening as a placeholder to try to reduce issue duplication.

Would you mind listing this in Known Issues section? Thanks!

@txomon That is a good idea. It will require a new release of vscode-yaml in order to show on the marketplace and I'm currently working on some potentially big changes regarding this extension, so I might let some of that hash out in the next couple days first.

+1
This is a deal breaker for me. Yaml is code and code need documentation. It would be nice if we can find a alternative.

BYK commented

@adamvoss is there any possibility to replace the parser witn yawn-yaml as @fullc0ntr0l suggested? I can open a PR if you are okay with the idea.