-
-
Notifications
You must be signed in to change notification settings - Fork 188
Improvement on snippets #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi Pine! Thanks for stopping by and reviewing the snippets, and thank you for Vetur. As you probably already guessed, my interest in Vetur as a dependency was not related to the snippets but to the additional support for Vue files, I definitely find it useful and the snippets couldn't work without that, which is an unfortunate side effect of how VS code languages has been set up, so thanks so much for enabling us the ability to use .vue in vscode.
Thanks for alerting me about |
This has been open for a few weeks now with no response, so I'm going to close it out. My last comment details what I think next steps could be, but I also don't think they're vital to the project. Thanks! |
Hey Sarah. Thanks for sharing your snippets by making it an extension and marking Vetur as a dependency.
In the demo, some stuff were not working correctly, so I'm here to ask for your setup and make the right PR to improve the snippets.
scaffold
snippets, sovbase
might be unnecessaryvanim
to expand in the<template>
in your gif?Here is how it should be:
The idea is, each "region" has a language defined by
lang
value, with the exception of<template>
, which has languagevue-html
.Now you are marking everything as js snippets, so they would be available only in
<script>
, which is wrong forvanim
etc:The correct way is to divide
template
/js
snippets into two files, and change the language associations (template
tovue-html
,js
tojavascript
) in yourcontributes.snippets
inpackage.json
. Top level snippets, such asvbase
should be associated for languagevue
.Let me know how you want to proceed. I can soon send a PR that
vbase
as it's covered by scaffold snippetsThe text was updated successfully, but these errors were encountered: