mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-04 16:13:54 +00:00
Serena's file-to-language router already maps `.t` to the Perl LS (`Language.PERL` in `solidlsp/ls_config.py`), but the Perl::LanguageServer-side `fileFilter` was hardcoded to `[".pm", ".pl"]`. As a result Perl::LanguageServer skipped `.t` files entirely: symbol queries on a `.t` returned empty, and references to `.pm`/`.pl` subs missed any callers defined in `.t` files. Add `.t` to the filter, deduplicate the two `fileFilter` literals into a `_FILE_FILTER` class constant, and note the sync requirement with `Language.PERL.get_source_fn_matcher()` in a comment. Cover the behavior with a new cross-file references test plus a `helper.t` fixture; the test fails on unpatched `main` and passes on this branch.