Code snippets no longer works
Closed this issue · 14 comments
I'm afraid that is a limitation of the Emmet engine itself as it doesn't seem to be able to recognize the context it is invoked in. Just tried this use case in Sublime Text and it worked the same way. As a workaround you might want to disable expansion on Tab
and use hotkey instead.
So how emmet work/recognize the context in Visual Studio Code?
They have their own implementation and do not use original plugin.
Seems like snippets doesn't work for html and js files too.
Is there any way to use VSCode js implementation in Emmet.Net?
I set False as Intercept TAB, still emmet.net is TAB owner and can not use code snippets.
Changing "Intercept TAB" requires Visual Studio restart, should be fine after that.
Yeah man, I know, I did before posting here, but no success, I'll try to remove and re-install the emmet.net, maybe it helps.
BTW, in the latest version it is enough to just reopen the document to apply new TAB interception setting.
I could not release TAB key, so I change shortcut key for snippets. I also had some problems in HTML files, so I had to install ZenCodingVS too
@sergey-rybalkin I fixed this issue using some sort of user input check, I'm using fixed version about 10 days and had no issue with it, can I send pull req for that?
@dehghani-mehdi Sure, it is highly appreciated.
@sergey-rybalkin Done! if you was happy with my changes accept the pr please and feel free to close this issue as well.
Oh, one this I forgot to mention in pr comment, I copied ChakraCore.dll
to the root of project, because of issue #3.
Just updated Emmet engine to version 2.0.0-rc.10 and it solves this problem by using < prefix for JSX/TSX files. See https://github.com/emmetio/emmet#extract-abbreviation-with-custom-prefix