mblode / vscode-twig-language-2

VS Code extension with snippets, syntax highlighting, hover, and formatting for Twig.
https://marketplace.visualstudio.com/items?itemName=mblode.twig-language-2
MIT License
58 stars 27 forks source link

viewBox attribute is changed to viewbox #62

Open andersaloof opened 4 years ago

andersaloof commented 4 years ago

I recently noticed that the viewBox attribute on <svg> elements inside will be renamed to viewbox when saved.

Changing settings.json to this "fixes" the issue:

"[twig]": {
  "editor.formatOnSave": false,
},

I've found a similar issue from a couple of years ago that is related (#26), so the bug may lie in PrettyDiff as it did then.

I'm on version 0.9.1.

mel-miller commented 3 years ago

It's still doing this with all camel case and I can't figure out how to disable it. My use case is that I'm creating custom attributes for my Twig and HTML that I want to be camel case, but they get "corrected" to lowercase.

I'm on version 0.9.2

zecka commented 2 years ago

Any news on that ?

KoltaG commented 5 months ago

Any news? Im using twig components, and I can't pass attributes becasue of this. I have to name my attributes without camelCase in order to work. (or turn off formatting, but this is still better then being without formatter tbh)