Skip to content

fix(extract): recognize uppercase TypeScript extensions#1881

Closed
xkam7ar wants to merge 1 commit into
Graphify-Labs:v8from
xkam7ar:agent/graphify-uppercase-typescript
Closed

fix(extract): recognize uppercase TypeScript extensions#1881
xkam7ar wants to merge 1 commit into
Graphify-Labs:v8from
xkam7ar:agent/graphify-uppercase-typescript

Conversation

@xkam7ar

@xkam7ar xkam7ar commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Summary

Normalize a file suffix once before grammar selection so uppercase TypeScript-family extensions (.TS, .TSX, .MTS, and .CTS) use the same TypeScript grammars as their lowercase forms.

Previously, extract_js() recognized uppercase JavaScript extensions through a lowercase check but compared the TypeScript branches against the original case-sensitive suffix. TypeScript-only declarations could therefore be omitted.

Tests

  • Regression failed before the source change on .TS
  • Module-extension tests: 7 passed
  • Relevant extraction suite: 127 passed, 1 skipped
  • Ruff on both changed files: passed
  • Required offline graphify update .: passed with no tracked generated changes
  • git diff --check: passed

safishamsi added a commit that referenced this pull request Jul 14, 2026
…section

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@safishamsi

Copy link
Copy Markdown
Collaborator

Landed on v8 as 8361a81, ships in 0.9.16. Thanks @xkam7ar - uppercase TS extensions now use the TS grammar.

@safishamsi safishamsi closed this Jul 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants