Skip to content

Commit

Permalink
fix: ignore methods for missing props hint
Browse files Browse the repository at this point in the history
close #2443
  • Loading branch information
johnsoncodehk committed Feb 24, 2023
1 parent 848b446 commit 9920e91
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/vue-language-service/src/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ export function checkPropsOfTag(
const propsType = checker.getTypeOfSymbolAtLocation(propsSymbol, components.componentsNode);
const props = propsType.getProperties();
for (const prop of props) {
if (prop.flags & ts.SymbolFlags.Method) { // #2443
continue;
}
if (!requiredOnly || !(prop.flags & ts.SymbolFlags.Optional)) {
result.add(prop.name);
}
Expand Down

0 comments on commit 9920e91

Please sign in to comment.