pub struct PickerAccepted {
pub source_id: String,
pub identity: Option<String>,
pub routing_payload_path: Option<PathBuf>,
pub ts: SystemTime,
}Expand description
Fired when the user accepts a candidate from a picker
(either through Action::PickerAccept or the single-
match LSP-picker short-circuit). The MRU index
subscribes to record + persist; future plugin
subscribers can read the same signal.
source_id is the picker registry id ("files",
"commands", …). identity is the MRU key derived
from the routing payload via
lattice_picker::routing_identity; None means the
routing payload has no stable identity (line/col drifts,
per-request index, etc.) and the candidate doesn’t
participate in MRU. Subscribers that care about
identity-bearing accepts skip the None arm.
ts is the wall-clock instant the accept fired; the MRU
subscriber stamps it on the MruEntry, while telemetry
subscribers can attribute by time window.
Fields§
§source_id: String§identity: Option<String>§routing_payload_path: Option<PathBuf>§ts: SystemTimeTrait Implementations§
Source§impl Clone for PickerAccepted
impl Clone for PickerAccepted
Source§fn clone(&self) -> PickerAccepted
fn clone(&self) -> PickerAccepted
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PickerAccepted
impl Debug for PickerAccepted
Source§impl Event for PickerAccepted
impl Event for PickerAccepted
Source§fn event_type_id(&self) -> EventTypeId
fn event_type_id(&self) -> EventTypeId
static to avoid
re-allocating the metadata on every call. The macro
register_event! generates this for you.