Tom-Bonnike / vscode-formatting-toggle

A VS Code extension that allows you to toggle the formatter (Prettier, Beautify, …) ON and OFF with a simple click.
https://marketplace.visualstudio.com/items?itemName=tombonnike.vscode-status-bar-format-toggle
MIT License
60 stars 13 forks source link

Infer `formattingToggle.affects` from the initial user configuration #49

Closed vcarl closed 4 years ago

vcarl commented 5 years ago

For months, I've been confused about why formatOnPaste kept getting re-enabled, and I've finally tracked it down to this extension. affects fixes the issue, but it took a lot of digging to find this as the cause.

It would be great if this behavior were either more prominently presented, or if this plugin could somehow infer what affects should be when it's installed.

Tom-Bonnike commented 5 years ago

Yeah, it should ideally not mess with the user’s configuration. It should be possible to infer the default based on what’s in the user’s config. I’ll see what I can do, but probably not before a while, contributions are welcome, though.

Tom-Bonnike commented 4 years ago

Meh, I documented affects and the extension now defaults to affecting all three formatting events. I think that’s good enough for now.