Skip to main content

Module intelligence

Module intelligence 

Source
Expand description

UI-agnostic language intelligence data models.

This module provides a small set of typed schemas that hosts can use to represent common “code editor intelligence” surfaces in a consistent way across UIs:

  • references result collections
  • call hierarchy (incoming/outgoing)
  • type hierarchy (supertypes/subtypes)

The core idea is that integrations (LSP, Tree-sitter, bespoke engines) can populate these structures and store them in WorkspaceIntelligence for later consumption by UI layers.

Structs§

CallHierarchyIncomingCall
A call hierarchy incoming edge (from -> root).
CallHierarchyOutgoingCall
A call hierarchy outgoing edge (root -> to).
CallHierarchyResultSet
A call hierarchy result set.
HierarchyItem
A generic cross-file “hierarchy item” (call hierarchy / type hierarchy).
ReferencesResultSet
A references result collection.
ResultSetId
Opaque id for an intelligence result set stored in a workspace.
TypeHierarchyResultSet
A type hierarchy result set.
WorkspaceIntelligence
Workspace-owned storage for language intelligence result sets.

Enums§

IntelligenceResultSet
A stored intelligence result set.
ResultSetKind
High-level kind of a stored result set.