OS: OS X 10.11.6
VSCode: 1.9.1
vetur: 0.3.6
Installed Extensions:
Procedures to re-produce the issue:
files.associations and emmet.syntaxProfiles settings provided in vetur's READMEtest.vue filetest.vue's tab, type template and hit the Tab key, some spaces are inserted, while it should generate the template tags. div.class-name, script or style won't work either. Screenshot (~2MB):files.associations in the settingstest.vue's tab, type template or div and Tab, they work as expected. And codehighlight too. Screenshot (~4MB):emmet.syntaxProfiles in the settings, Tab key still works. Even after vetur was uninstalled, VSCode seems to handle the emmet just fine. As long as I don't have the files.associations setting, emmet never breaks.Meanwhile things like sass support worked as expected, as VSCode complained about the grammar if vetur was disabled or files.associations setting was commented out.
Thank you so much for your detailed description. Can you enable vetur and have this in your VSCode setting to see if it works for you?
"emmet.syntaxProfiles": {
"vue-html": "html",
"vue": "html"
}
The problem is, this is how vetur marks each region:
<template> // vue
<div></div> // vue-html
</template> // vue
// vue (1)
<style> // vue
// css
</style> // vue
By adding vue-html: html, you are saying "use html emmet in vue-html" region. So emmet wouldn't work in (1) initially.
To use emmet in vue region, you need vue: html in emmet syntax profile.
Thanks again. I'll add it to README.
Most helpful comment
Thank you so much for your detailed description. Can you enable vetur and have this in your VSCode setting to see if it works for you?
The problem is, this is how vetur marks each region:
By adding
vue-html: html, you are saying "use html emmet in vue-html" region. So emmet wouldn't work in (1) initially.To use emmet in vue region, you need
vue: htmlin emmet syntax profile.Thanks again. I'll add it to README.