panoply / vscode-liquid

💧Liquid language support for VS Code
https://marketplace.visualstudio.com/items?itemName=sissel.shopify-liquid
Other
171 stars 22 forks source link

Multi-line element scripts indented too many times #95

Closed Christopher-Hayes closed 1 year ago

Christopher-Hayes commented 2 years ago

image

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.

panoply commented 2 years ago

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.

Christopher-Hayes commented 2 years ago

Cool, thanks @panoply

panoply commented 1 year ago

🚢 Shipped v3.0.0