Open kevinmu17 opened 3 years ago
I'll dove into the problem, somehow it didn't removed the line "editor.defaultFormatter": "mblode.twig-language-2"
from the settings.json. So it still called the formatter to do it's job.
I found out that the problem lies within COMMENTS. if you place comments inside a div with attributes it messed up everything. if you make a comment on only 1 line, not nested in any element, it will be fine (this should need a fix though)
Same problem for me with comments between blocks :
{% block body %}
{#
My comment between block
#}
{% endblock body %}
{#
My comment outside block
#}
After some "auto formatting"
{% block body %}
{#
My comment between block
#}
{% endblock body %}
{#
My comment outside block
#}
Same problem here, with the Comments, my editor.defaultFormatter
is set to None
Was about to post the same issue. This needs to be fixed as comments are impossible to format.
Same with {% set %}
tags. Everything indents after them
This formatter also ignores indentation type setting and forces you to use tabs like a caveman.
+1
It is so broken, i know, you are using prettyDiff... They where the reason i switched from atom to vscode, bad maintained!
Your extension does a great job with highlighting and snippets which I want to keep. But the formatting I want to ommit. It seems that the config "Twig-language-2: Formatting" doesn't do it's job when turned off, it gives me a message when trying to prettify my code "Extension Twig-language-2 cannot format template" so it's still blocking in a way.
Hope you can help!