Skip to main content

PICKER_ROUTING_KIND_ID

Constant PICKER_ROUTING_KIND_ID 

Source
pub const PICKER_ROUTING_KIND_ID: u32 = 200;
Expand description

CandidateData::Extension { kind_id } value the picker stamps on every candidate it builds. Each candidate’s payload bytes are a u32 LE index into the picker’s routing_meta sidecar vec; the sidecar holds the typed RoutingPayload enum the accept dispatch matches on.

Same shape used by the insert-completion crate’s snippet + LSP-completion sidecars (see app::SNIPPET_COMPLETION_KIND_ID / LSP_COMPLETION_KIND_ID); a distinct id keeps picker candidates from colliding with insert-completion ones if the surfaces ever share a list (they don’t today, but the type system stays honest).