Skip to content

Conversation

@tnm
Copy link
Contributor

@tnm tnm commented Jan 18, 2026

Fixes #187

Summary

  • Tree-sitter query files for TypeScript, JavaScript, and Rust had @definition.X captures on the wrong node (identifier instead of declaration)
  • This caused extract_symbols to return only the symbol name in the code field instead of the full source

Changes

  • Fix query patterns in typescript/tags.scm, javascript/tags.scm, rust/tags.scm
  • Add regression test for multi-line symbol code extraction
  • Document include_code param in MCP tool description and docs

Test plan

  • pytest tests/test_symbol_extraction_multilang.py passes
  • pytest tests/mcp/test_server.py passes

)

The tree-sitter query files for TypeScript, JavaScript, and Rust had
@definition.X captures placed on the identifier node instead of the
declaration node, causing extract_symbols to return only the symbol
name in the code field.

- Fix TypeScript/JavaScript/Rust query patterns to capture full body
- Add regression test for issue #187
- Document include_code param in MCP tool description and docs
@tnm tnm merged commit 3c8d7b0 into main Jan 18, 2026
2 checks 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.

get_symbol_code returns symbol name instead of actual source code

2 participants