vscode-liquid icon indicating copy to clipboard operation
vscode-liquid copied to clipboard

Saving code add characters or spaces

Open ezkoombea opened this issue 1 year ago • 3 comments

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.

ezkoombea avatar Sep 28 '22 16:09 ezkoombea

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 avatar Sep 28 '22 16:09 panoply

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

panoply avatar Sep 30 '22 08:09 panoply

@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 avatar Oct 07 '22 18:10 panoply

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

panoply avatar Oct 27 '22 10:10 panoply