You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem:
GitGalaxy drops all 35 optional interface methods in vscode/vscode.d.ts (e.g., copy, flush, handleDrag).
Root Cause:
The func_start regex for TypeScript in language_standards.py expects the parameter list's ( to immediately follow the function name or generic parameters ((?=[ \t\n]{0,50}(?:<(?:[^<>]|<[^<>]*>)*>)?[ \t\n]{0,50}\()). It lacks a \?? before the parenthesis to tolerate the optional modifier ? in method signatures like copy?(source: Uri): void;.
To Reproduce:
Run tests/tools/tree_sitter_accuracy_audit.py --lang typescript and observe copy, flush, etc., from vscode.d.ts in _missing_examples.
Resolved by #2245 ("recognize negation-body arrows, optional method signatures, and fix TS audit ground-truth filter"), already merged to main. The func_start regex now tolerates the optional-modifier ? before the parameter list (\?? at language_standards.py:1284 and :1334).
Verified directly against this issue's own repro strings on current main:
Activity
[-][TS] Extraction misses optional method signatures (e.g. `copy?()`, `flush?()`, `handleDrag?()`) [/-][+][TypeScript] Extraction misses optional method signatures (e.g. `copy?()`, `flush?()`, `handleDrag?()`) [/+]chore: regenerate typescript tree-sitter accuracy baseline
fix(typescript): recognize negation-body arrows, optional method sign…
squid-protocol commentedon Aug 26, 2026
Resolved by #2245 ("recognize negation-body arrows, optional method signatures, and fix TS audit ground-truth filter"), already merged to
main. Thefunc_startregex now tolerates the optional-modifier?before the parameter list (\??atlanguage_standards.py:1284and:1334).Verified directly against this issue's own repro strings on current
main:Closing as already fixed.