Skip to content

Commit

Permalink
Don't generate parameter hints if argument variable name is the same …
Browse files Browse the repository at this point in the history
…as the argument
  • Loading branch information
jbradaric committed Jun 20, 2023
1 parent 9e0960b commit 149c366
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@ export class TypeInlayHintsWalker extends ParseTreeWalker {
if (p.paramName?.startsWith('__')) {
continue;
}
if (p.paramName === p.argument.name) {
continue;
}
if (p.paramName) {
this.featureItems.push({
inlayHintType: 'parameter',
Expand Down

0 comments on commit 149c366

Please sign in to comment.