Skip to main content

routing_identity

Function routing_identity 

Source
pub fn routing_identity(payload: &RoutingPayload) -> Option<String>
Expand description

Derive the MRU identity for a routing payload. None means “no stable identity” – the picker correctly skips MRU for these (LSP locations have drifting line/col, LSP code-action / completion indices are per-request).

Plugin-custom routing (Phase 7) returns None because the picker primitive doesn’t know how to inspect the opaque bytes. Plugins that want MRU must emit one of the canonical variants; this is documented in docs/dev/architecture/picker.md § 8.