1000ch / vscode-svgo

Fully featured SVGO extension for Visual Studio Code 🐯
https://marketplace.visualstudio.com/items?itemName=1000ch.svgo
MIT License
72 stars 8 forks source link

fix: fix non-default plugins #114

Closed SethFalco closed 2 months ago

SethFalco commented 2 months ago

Fixes an issue that would've existed since the project was using SVGO v2.0.0. The preset-default override parameter is only used to disable plugins that are a part of preset-default, but it can not enable plugins that aren't.

This puts plugins that are not in preset-default as new items in the plugin array instead of in the override parameter. Now they actually get invoked.

Chores

I've also done some chores, feel free to ask me to revert any of them or ask for clarification if needed:

engines.vscode: This specifies the minimum version of VS Code API that the extension depends on.

https://code.visualstudio.com/api/get-started/extension-anatomy

Screenshots

Before

Observe that despite having removeXMLNS enabled, the XML namespace declaration is still there.

xmlns-not-removed

After

Observe that the XML namespace declaration is now gone.

image