Like builtin_completions but only materializes items whose label
passes keep — completion builds these per request, and constructing
hundreds of builtin items just for a prefix retain to drop them dominated
the request’s allocations.
Like symbol_completions_matching but only includes variables declared
at or before line. Non-variable items (functions, classes, etc.) are always included.
Like symbol_completions but only materializes items passing keep.
Callables carry no signature or docs: completion_resolve fills them from
the FQN hint in data, so a large unfiltered list stays cheap.
Workspace-index-backed class lookup: maps a short class name to the
ParsedDoc that defines it. Used by all_instance_members and
all_static_members to avoid scanning all workspace docs linearly.
Workspace-index-backed class name search: given a typed prefix, returns
(short_name, kind, fqn) for every workspace class whose short name
starts with it — including classes defined in files that are not open
in the editor (e.g. vendor/). Complements other_docs, which only
covers currently open documents.