mblode / vscode-twig-language

VS Code extension with snippets, syntax highlighting, hover, and formatting for Twig.
https://marketplace.visualstudio.com/items?itemName=mblode.twig-language
MIT License
42 stars 7 forks source link

twig are consider HTML5 #5

Closed jimblue closed 6 years ago

jimblue commented 6 years ago

One strange thing with the new update Twig file know are read as HTML5 files.

screen shot 2017-11-25 at 17 33 56

Is it possible to revert that?

mblode commented 6 years ago

I have changed this on order to provide the Twig files with HTML5 intellisence, autocomplete, Emmet and hover that is all built into VSCode. Personally I think this provides a better experience but maybe I can make option to configure this.

jimblue commented 6 years ago

Sure XP is better! Just this HTML5 icon is disturbing, maybe picky ^^

mblode commented 6 years ago

Haha I feel you! I'm just as picky... Hence this extension. I'll see what I can do

jimblue commented 6 years ago

Thanks to try, don't want to loose my last eye! 😝

vieko commented 6 years ago

Another picky prick here :) Adding the following to your folder / workspace settings does the trick without messing any of the advantages provided by the extension:

"vsicons.associations.files": [ { "icon": "twig", "extensions": ["twig", "html"], "format": "svg" } ],

mblode commented 6 years ago

G'day mates, I have created a new extension to fix the issues that I (and all of you) were having with file associations, issues with commenting and also the most important issue with the icon in the sidebar.

https://marketplace.visualstudio.com/items?itemName=mblode.twig-language-2 https://github.com/mblode/vscode-twig-language-2

Simply add these lines to your VSCode settings to get emmet and HTML Intellisense working and also to associate HTML files as twig syntax.

"files.associations": {
    "*.html": "twig"
},
"emmet.includeLanguages": {
    "twig": "html"
},
jimblue commented 6 years ago

Thanks for the fix 👍