-
-
Notifications
You must be signed in to change notification settings - Fork 419
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
feat: Support for @vue-ignore
, @vue-skip
, @vue-expect-error
directive comments
#3215
Conversation
TypeScript uses |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
packages/vue-language-core/src/generators/template.ts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
packages/vue-language-core/src/generators/template.ts
@Anoesj Unfortunately bug 🤦, will fix it in the next release, thanks for the report. |
Fixed by 5696eb2 |
I tried this but having a v-if breaks it. I had to move the v-if into a template, then it works. |
What about allowing comments to follow the tags? eg: <!-- @vue-expect-error We could type this with some magic, but it would probably be complex to do -->
equivalent in ts:
// @ts-expect-error We could type this with some magic, but it would probably be complex to do |
I tried to copy/paste the examples and got caught by the |
@saibotk That's already supported in 1.8.0. |
@vue-ignore
, @vue-skip
, @vue-expected-error
directive comments@vue-ignore
, @vue-skip
, @vue-expect-error
directive comments
Close #2366
Support 3 directive comment syntax for template.
@vue-ignore
: Similar to@ts-ignore
, ignore errors of the next template node. (Not just the next line)@vue-expect-error
: Similar to@ts-expect-error
, report if the next template node has no errors.@vue-skip
: The next template node and its child nodes will skip generating virtual code.Usage