## Lesson — Prioritize TS over TSX for parsing

**Tags:** typescript, ast-grep, parsing
**Scope:** packages/core/src/compile-smoke-gate.ts

When inferring extensions for code snippets, prioritize .ts over .tsx because TSX does not support angle-bracket type assertions (e.g., <Type>value), making it a subset rather than a superset of TypeScript syntax.
