pub struct LspInstanceRow {
pub workspace: PathBuf,
pub server_id: String,
pub buffer_count: usize,
pub cap_summary: String,
}Expand description
One row of the LSP-instance source. The picker host (App)
snapshots this from LspSupervisor::running_actors() under
the supervisor lock, then drops the lock before handing the
vec to the picker. Decouples the picker module from the
supervisor’s async Mutex.
Fields§
§workspace: PathBuf§server_id: String§buffer_count: usize§cap_summary: StringOne-line capability summary – hover def refs comp-style
glyph cluster. The host (e.g. lattice-ui-tui’s
summarise_capabilities) builds this; we just hold a
string.
Implementations§
Source§impl LspInstanceRow
impl LspInstanceRow
Sourcepub fn into_candidate_with_routing(self) -> (RawCandidate, RoutingPayload)
pub fn into_candidate_with_routing(self) -> (RawCandidate, RoutingPayload)
Render this row as a (RawCandidate, RoutingPayload)
pair (Phase 4.2.g.7 polish). The candidate’s text
holds the user-facing server id (the matcher matches
against display, so text’s value is observational
only); the routing payload carries the typed
(server_id, workspace) pair the accept dispatch reads.
Trait Implementations§
Source§impl Clone for LspInstanceRow
impl Clone for LspInstanceRow
Source§fn clone(&self) -> LspInstanceRow
fn clone(&self) -> LspInstanceRow
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LspInstanceRow
impl RefUnwindSafe for LspInstanceRow
impl Send for LspInstanceRow
impl Sync for LspInstanceRow
impl Unpin for LspInstanceRow
impl UnsafeUnpin for LspInstanceRow
impl UnwindSafe for LspInstanceRow
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more