Skip to content

fix(extract): recognize uppercase TypeScript extensions#1881

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

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

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

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.

1 participant