rholdos / vscode-twig-language-support

Extensions for VS Code - complete support for Twig language v3
MIT License
6 stars 0 forks source link

Don't autoclose HTML #4

Open mrleblanc101 opened 2 years ago

mrleblanc101 commented 2 years ago

If I type < it get autocompleted to <> with the cursor in the middle. This does not match the behavior inside HTML file. This can conflict with other VS Code extension like autoclose HTML. I think this plugin should only provide Twig specific language feature.

mrleblanc101 commented 2 years ago

In fact the native VS Code HTML autoclosing behavior does not work inside Twig file at all. Not sure if it's related with the extension.

In a HTML file: <div> expands to <div></div>

In a Twig file with this extension: < expands to <> but does not open a closing tag even after you finish typing div and type a second > which is skipped and move the focus outside the tag.

In a Twig file with Twig Language 2 or Twig Language Support: <div> is not expanded at all.

florianbouvot commented 1 year ago

@mrleblanc101 did you find a solution?

mrleblanc101 commented 1 year ago

No