nativescript-vscode-snippets
nativescript-vscode-snippets copied to clipboard
add support to .vue, please
Thanks for the great plugin. Would you please add support to .vue fiel?
shilik
Hi @shilik, a contributor added the vue-html
language. Can you please update your plugin and test if that works for you?
Hi, @tsvetan-ganev The snippets show up as expected, but some expressions are not correct in nativescript-vue. for example, the following codes. <TabView id="tabViewContainer"> <TabView.items> <TabViewItem title="Tab 1"> <TabViewItem.view> <Label text="This is Label in Tab 1" /> </TabViewItem.view> </TabViewItem> <TabViewItem title="Tab 2"> <TabViewItem.view> <Label text="This is Label in Tab 2" /> </TabViewItem.view> </TabViewItem> </TabView.items> </TabView>
An Error likes " [Vue warn]: Unknown custom element: <TabView.items> - did you register the component correctly? For recursive components, make sure to provide the "name" option." pops up.
Because there are no markdown codes like TabView.items and TabViewItem.view. Other code snippets have similar errors too. It would be perfect if all of these errors can be got rid of.
Best
SHIH
@shilik, Thanks for the feedback. I personally haven't used neither Vue.js, nor NativeScript with Vue, so I have to investigate why this happens. Can you please tell me what is the VSCode extension you are using for the Vue syntax?
Hi, @tsvetan-ganev The VSCode extensions I use for nativescript-vue mobile development are the following: Nativescript,Vetur, Vue, Vue 2 Snippets,Vue VS Code Extension Pack,Vue Peek,Vue VSCode Snippets, VueHelper. Among all these extensions, an extension that contains Code Snippets with intelliSense for nativescript-vue is what I am looking for. I have managed to compiled a userscript for Code Snippets for nativescript-vue as a workaround though.
Best,
SHIH