Add first-class GDScript / Godot support to graph indexing
Summary
Graph indexing in lean-ctx does not index GDScript (.gd) files. Godot 4.x projects cannot use ctx_symbol, dependency graphs, or graph-based tooling.
Observed behavior
On a real Godot 4.6.3 project (NiMv1/global-map-game):
` ext ctx_graph action='build' path='.'
Project Graph: 0 files, 0 symbols, 0 edges
ctx_graph action='status' path='.'
No graph index / 0 GDScript symbols
`
- Graph build completes but ignores .gd files
- Graph status returns 0 symbols for a repo with 6+ GDScript files
- ctx_symbol is unusable for navigation (class_name MapLocation, MapDataManager, etc.)
- ctx_semantic_search / ctx_compose also ineffective (empty semantic index)
Expected behavior
- ctx_graph build indexes .gd files with tree-sitter (or equivalent)
- Symbols: classes (class_name), functions, signals, enums
- ctx_symbol resolves e.g. MapDataManager.load_map_data in scripts/map_data_manager.gd
- Call/dependency graph includes GDScript edges
Example files from global-map-game
| File | Symbols expected |
|---|---|
| scripts/global_map.gd | _spawn_locations, collect_map_data, efresh_connections |
| scripts/map_location.gd | class_name MapLocation, LocationType, setup, _draw |
| scripts/map_data_manager.gd | class_name MapDataManager, load_map_data, save_map_data |
| scripts/dev/map_editor.gd | setup, _pick_location |
| scripts/github_config.gd | class_name GitHubConfig |
| scripts/github_issue_menu.gd | _create_issue_worker |
Environment
- lean-ctx: 3.7.5
- Godot: 4.6.3
- OS: Windows 10
- .lean-ctx.toml extra_ignore_patterns excludes .godot/, export/ — scripts/ is not ignored
Impact
Godot/GDScript is a common game-dev stack. Without graph support, lean-ctx users are limited to text search (ctx_search) and lose symbol navigation, call graphs, and compose workflows that work for Python/Go/TS projects.
Workaround today
Use ctx_read(mode=signatures) + ctx_search — documented in project LEAN_CTX_NOTES.md.
Implemented on main in e234eac20 — first-class GDScript/Godot support for graph indexing: .gd now maps to LanguageId::Gdscript, with a tree-sitter GDScript handler (functions, signals, class_name), plus import-resolver and deep-query (calls/imports/type_defs) coverage. Ships in the next release (main is currently ahead of the latest tag v3.7.5). Please reopen if ctx_graph build still reports 0 symbols on your Godot 4.x project after upgrading. Thanks for the detailed repro!