panoply / vscode-liquid

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

Saving code add characters or spaces #101

Closed ezkoombea closed 1 year ago

ezkoombea commented 2 years ago

Until today everything was working perfectly. But now every single time I save a liquid file, it adds characters, letters or tab spacing into the file, modifying the code indentation. I had disabled/enabled and uninstalled/installed the extension multiple times but without success to fix the bug. When is disabled, the issue is gone, but this extension helps a lot while coding.

panoply commented 2 years ago

Hey @ezkoombea

So the update was going to be a bit of transition for users. A lot has changed. You can always use the previous version as per documentation. Can you share with me this issues you are having and share the code sample?

Let's try get to the bottom of it.

panoply commented 2 years ago

This might be due to a defect on multiline tags, try enabling forceIndent and see how you go.

panoply commented 2 years ago

@ezkoombea I need more information here but I am going to assume this is occurring in newlined tags similar to https://github.com/panoply/prettify/issues/34. For example:

<div>
  {% render 'snippet' 
     param2: 'foo',
     param2: 'bar'
  %}
</div>

In any sense, v3.1.0 will likely solve this issue. If I am incorrect here, please let me know.

Thanks

panoply commented 1 year ago

Closing this. Any defects pertaining to this should now be resolved, if anything persists then open a new issue.