The current CompletionProvider based VSCode's html extension needs improvement.
This is to write a new CompletionProvider to satisfy the following goals:
<span v-text="|"></span> here it should suggest all possible values (props, computed props) for the current component.FooBar.vue -> <foo-bar>.SnippetString in CompletionItem to provide Vue APIThings need to look into:
SnippetString for ISvscode-textmate for getting scope infoWhile doing it, maybe also add a custom Diagnostics that shows error, such as v-if using non-existing prop.
Will this also allow for ctrl+clicking to go to definition to work? I noticed that this works in .js files but not .vue files (with vetur v0.3.0)
@SoullessWaffle Not yet. Will do that after this one.
While doing it, maybe also add a custom Diagnostics that shows error, such as v-if using non-existing prop.
Wouldn't this be impossible since you won't always be able to infer props from external sources like mixins?
@sebastiandedeyne Good question. That's doable if you find where the mixin is defined, evaluate(or interpret) it, and use that to do the diagnostics.
However, after looking into the problem, I feel that would take much effort for something not many people want. I'll just do IntelliSense first and look into this later.
A similar scenario would be vuex. I'll look into how you can suggest getters and actions when writing this.$store in SFC.
Suggesting directives:

Suggesting nothing, even v- is typed:

Will polish it a bit and make a release this weekend.
An update:
v-* directives and slot, key, and ref IntelliSense are now supported. Upgrade to 0.5.0 to try it out.Thanks to @sandersn's PR https://github.com/octref/vetur/pull/94, module resolution works now.
I'm planning to find a way to get props / data / computed / methods information from the exported component and use it to power IntelliSense (for both html template and js), and release 0.6 around this weekend.


When version 0.6 will be release? I'm so exciting to use. Congratulations for this extension.
I expect that it will be release. Would you release 0.5.x and let users use the latest feature? :smile:
What is the current status? Do you have a roadmap?
Would rather have stable features before publishing. This way it's better for users and I have less bugs to deal with. A list of things coming with 0.6:
thiswhat's the expected release date? I'm sure lots of people waiting for this :)
0.6 is released with module resolution (not working perfectly for import/export Vue SFC, but works great for node modules and loading js/ts files).
Also better IntelliSense:


Next step is to improve module resolution for Vue files and IntelliSense in template, but I'll track them in other issues.
Most helpful comment
An update:
v-*directives andslot,key, andrefIntelliSense are now supported. Upgrade to 0.5.0 to try it out.