attilabuti / vscode-mjml

This repo is archived. MJML preview, lint, compile for Visual Studio Code.

Home Page:https://marketplace.visualstudio.com/items?itemName=attilabuti.vscode-mjml

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Beautify document deletes file content

nik-lampe opened this issue · comments

commented

Hello,

when I use the MJML: beautify Command on my file the whole file content gets removed.
Haven't had this issue when I used the extension about two months ago.

I'm trying to find some debug output to provide more information, but can't find any.
When I change the language type of the file to html the formatting works just fine.

Any ideas? Maybe some misconfiguration in my settings?

Hello @nik-lampe,

Can you send me your mjml.beautify configuration?

commented

Sure, here:

"mjml.beautify": {
"indent_size": 2,
"wrap_attributes_indent_size": 2
}

@attilabuti

Hello @nik-lampe

Sorry, this is my fault I will fix it in the next update.

Having exactly the same issue. Glad it will be fixed soon. :)

Any updates on this @attilabuti? Any workaround while we wait for an update?

Hello @gabrielrinaldi

I would like to release a new version in this week.

Workaround:
Use mj-head in your mjml files.

@attilabuti that works! The extension is really great and a huge time saver. Thanks a lot

The issue is fixed on 1.6.0.