pub enum LspConnectEvent {
Started {
command: String,
ext: String,
},
Failed {
command: String,
ext: String,
error: String,
},
Warning {
ext: String,
message: String,
},
}Expand description
Status events emitted by LspManager when servers start, fail, or
hit non-fatal trouble. Mirrors mcp::McpConnectEvent so the TUI
event loop can render them as scrollback lines instead of having
the manager write directly to stderr (which leaks into the input
box while the renderer owns the screen — see lsp/mod.rs for the
full plumbing rationale).
Variants§
Started
A language server was successfully started for the given extension.
Failed
Starting the server failed; LSP is best-effort, so the agent loop continues without diagnostics for that file type.
Warning
Non-fatal trouble (e.g. shutdown error during teardown). Routed to the trace log by the TUI rather than scrollback so it doesn’t churn the UI for things the user can’t act on.
Trait Implementations§
Source§impl Clone for LspConnectEvent
impl Clone for LspConnectEvent
Source§fn clone(&self) -> LspConnectEvent
fn clone(&self) -> LspConnectEvent
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 LspConnectEvent
impl RefUnwindSafe for LspConnectEvent
impl Send for LspConnectEvent
impl Sync for LspConnectEvent
impl Unpin for LspConnectEvent
impl UnsafeUnpin for LspConnectEvent
impl UnwindSafe for LspConnectEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more