Skip to content

Commit

Permalink
fix: filter events for missing props hints
Browse files Browse the repository at this point in the history
close #2468
  • Loading branch information
johnsoncodehk committed Mar 10, 2023
1 parent 99dc860 commit da82970
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/vue-language-service/src/plugins/vue-template.ts
Expand Up @@ -169,6 +169,9 @@ export default function useVueTemplateLanguagePlugin<T extends ReturnType<typeof
else if (attrText === 'v-model') {
attrText = 'modelValue'; // TODO: support for experimentalModelPropName?
}
else if (attrText.startsWith('@')) {
attrText = 'on-' + hyphenate(attrText.substring('@'.length));
}

current.unburnedRequiredProps = current.unburnedRequiredProps.filter(propName => {
return attrText !== propName
Expand Down

0 comments on commit da82970

Please sign in to comment.