From 8ca25fe7534873163e3efe52cedf7bf404c903de Mon Sep 17 00:00:00 2001 From: jiangnan <1394485448@qq.com> Date: Fri, 6 Mar 2026 05:13:37 +0800 Subject: [PATCH] fix(csharp): remove invalid simple_base_type from heritage queries MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit tree-sitter-c-sharp v0.21 does not have a simple_base_type node in base_list — identifiers appear directly under base_list. The invalid node type caused the entire CSHARP_QUERIES to fail at query compilation time (TSQueryErrorNodeType), which meant processFileGroup silently returned early and no C# symbols were extracted at all. Fixes #173 --- gitnexus/src/core/ingestion/tree-sitter-queries.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gitnexus/src/core/ingestion/tree-sitter-queries.ts b/gitnexus/src/core/ingestion/tree-sitter-queries.ts index 7eeeb73e0..d7b4e2d7e 100644 --- a/gitnexus/src/core/ingestion/tree-sitter-queries.ts +++ b/gitnexus/src/core/ingestion/tree-sitter-queries.ts @@ -282,9 +282,9 @@ export const CSHARP_QUERIES = ` ; Heritage (class_declaration name: (identifier) @heritage.class - (base_list (simple_base_type (identifier) @heritage.extends))) @heritage + (base_list (identifier) @heritage.extends)) @heritage (class_declaration name: (identifier) @heritage.class - (base_list (simple_base_type (generic_name (identifier) @heritage.extends)))) @heritage + (base_list (generic_name (identifier) @heritage.extends))) @heritage `; // Rust queries - works with tree-sitter-rust