Skip to main content

Module outline_search

Module outline_search 

Source
Expand description

Bounded, read-only declaration discovery for code_search.

This replaces the external ast-grep binary that VT Code used to download and spawn for declaration outlines. Declarations are recognised with per-language regular expressions over the source text, which keeps the tool self-contained without giving up the definition result category.

A declaration is a line that declares a name — a function, type, class, or constant definition — as opposed to merely mentioning one. The patterns are deliberately conservative: they match declaration keywords rather than any occurrence of the name, so a call site is never reported as a definition.