vscode-liquid
vscode-liquid copied to clipboard
Multi-line element scripts indented too many times
Description
Every time I run "Liquid: Format Document", the scripts after the @click
line get indented like 20 times. If I run format again, it gets indented another 20 times.
This seems to only happen if I have the {% if %}
inside the element properties. If I remove conditional, it indents as expected.
Temporary work-around
Don't use {% if %}
inside element properties.
Hey @Christopher-Hayes
Thanks for the information. This was fixed in Prettify which will be used in future releases of the extension. If you can hold out a little longer I will ship a pre-release candidate for this.
Cool, thanks @panoply
🚢 Shipped v3.0.0