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

Make formatter configurable #34

Closed
ppuschmann opened this issue Jul 3, 2021 · 1 comment
Closed

Make formatter configurable #34

ppuschmann opened this issue Jul 3, 2021 · 1 comment
Labels
feature New feature or request

Comments

@ppuschmann
Copy link

ppuschmann commented Jul 3, 2021

Hi,

the automatic formatting of YAML-files is a great feature.
Working a lot with Ansible, there's YAML all over the place.

Unfortunately the updated plugin now "aggressively" removes empty lines,
quotes and curly-braces. (I guess the change was #30 )

Often it is a good idea to remove useless characters like quotes and curly-braces, I agree.
I think it would be nice to have these "cleanup" configurable or executable as a separate command.

Currently I disabled the extension completely because

  • I have too many changes in my files
  • I no longer can read / structure my files because of deleted empty lines
@pascalre pascalre changed the title Make Formatter configureable Make formatter configurable Jul 10, 2021
@pascalre pascalre added the feature New feature or request label Jul 10, 2021
pascalre added a commit that referenced this issue Jul 10, 2021
@pascalre
Copy link
Owner

Hi @ppuschmann please update to version 5.0.0. The yaml formatter is now disabled by default. If you need to enable the formatter, you can use the configuration useAsFormatter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants