diff --git a/src-tauri/src/commands/ai/code_intel.rs b/src-tauri/src/commands/ai/code_intel.rs index 7607d12..4a5d0f6 100644 --- a/src-tauri/src/commands/ai/code_intel.rs +++ b/src-tauri/src/commands/ai/code_intel.rs @@ -39,6 +39,8 @@ const DEFINITION_KINDS: &[&str] = &[ "interface_declaration", "enum_declaration", "method_definition", + // TS/JS const/let/var 声明(如 const fn = () => {}) + "variable_declarator", // Go "method_declaration", // Go method(receiver func) "type_declaration", // Go type Xxx struct/interface/func