Skip to content

Commit

Permalink
fix automatic naming of placeholders
Browse files Browse the repository at this point in the history
  • Loading branch information
rikukissa committed May 15, 2021
1 parent b19602e commit b82148f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/extension/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ export function getPlaceholderTypeName(document: ts.SourceFile) {
results = tsquery.query(
document,
`TypeAliasDeclaration > Identifier[name="AutoDiscovered${n}"]`
).concat(
tsquery.query(
document,
`InterfaceDeclaration > Identifier[name="AutoDiscovered${n}"]`
)
);
}

Expand Down

0 comments on commit b82148f

Please sign in to comment.