lishu / vscode-svg2

A vscode svg langauge support extension
MIT License
200 stars 10 forks source link

Support SVGO object config #171

Closed justcontributor closed 3 months ago

justcontributor commented 4 months ago

Currently, most minify settings in the SVG extension do not accept objects. However, objects are valid configurations and work correctly.

Therefore, I made it possible to pass objects as settings in settings.json without warnings.

If you accept the pull request, your extension will be able to use the settings like the one below without incorrect warnings:

"svg.minify.inlineStyles": { "onlyMatchedOnce": false },