Code intelligence

Owns project-scoped committed TypeScript/TSX graphs: parsing, declaration search, signature inspection, bounded relationship traversal, indexing status, and explicit opt-in Git hooks. Code bodies are read from actual source, not stored in the graph. No model or remote API is required.

AI/JSON CLI tools expose only search, inspect, expand, and project status. Parsing and hook controls remain explicit app commands/settings and commit-hook services. External follow-ups are read-only; missing target indexes retain source locations without offering a parse tool. Queries do not refresh indexes.

Compiler context and graph ownership

Compilation retains project-local eligible TS/TSX files and committed .d.ts ambient declarations selected by the effective tsconfig, including ambient declarations outside the selected project that are not reached through imports. Unimported non-declaration .ts/.tsx files outside the project and gitignored sibling directories are not treated as compiler roots. External ambient roots and imported dependencies use the same snapshot reader, dirty-input guards, and manifest tracking. Imported ignored generated dependencies and installed packages remain resolution inputs.

Only project-local Git-eligible sources become fully indexed files/declarations; external symbols remain minimal references. A project still needs at least one eligible local tsconfig root. Analyzer version 6 rebuilds older manifests on the next successful parse.

Source map

Commands live in commands/code/definition.ts relative to the plugin root. See the Memory overview, Markdown module, and design/progress record.