pub struct LspBufferAttached {
pub id: DocumentId,
}Expand description
Fired after lsp-mode activates on a buffer and the
supervisor has queued the textDocument/didOpen. The
semantic counterpart to LSP’s didOpen on the editor’s bus:
the buffer is now LSP-tracked. Subscribers (statusline,
future plugin hooks, telemetry) react without polling
App::active_modes.
Carries only the DocumentId so the event can be published
from LspMode::on_activate without the mode needing a
host-side path lookup. Subscribers that need the buffer’s
path resolve it themselves via their App handle.
Fields§
§id: DocumentIdTrait Implementations§
Source§impl Clone for LspBufferAttached
impl Clone for LspBufferAttached
Source§fn clone(&self) -> LspBufferAttached
fn clone(&self) -> LspBufferAttached
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 moreSource§impl Debug for LspBufferAttached
impl Debug for LspBufferAttached
Source§impl Event for LspBufferAttached
impl Event for LspBufferAttached
Source§fn event_type_id(&self) -> EventTypeId
fn event_type_id(&self) -> EventTypeId
The type-id under which this event is registered.
Implementors typically delegate to a
static to avoid
re-allocating the metadata on every call. The macro
register_event! generates this for you.Auto Trait Implementations§
impl Freeze for LspBufferAttached
impl RefUnwindSafe for LspBufferAttached
impl Send for LspBufferAttached
impl Sync for LspBufferAttached
impl Unpin for LspBufferAttached
impl UnsafeUnpin for LspBufferAttached
impl UnwindSafe for LspBufferAttached
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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