mirror of
https://github.com/DeusData/codebase-memory-mcp.git
synced 2026-11-06 08:35:21 +08:00
C# was listed as a supported language but every .cs file produced "unsupported language: c-sharp" because the tree-sitter grammar was never wired up. The comment cited a "module path mismatch", but github.com/tree-sitter/tree-sitter-c-sharp is a valid Go module path (hyphens are allowed); the Go package inside simply uses underscores (tree_sitter_c_sharp), which is standard Go convention. Fix: add the import and map lang.CSharp to tree_sitter_c_sharp.Language() in parser.go. Also remove the C# skip from TestAllLanguagesLoad and add TestParseCSharp to verify class and method parsing. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>