pub struct LspCodeLensCache {
pub document_version: u64,
pub lenses: Vec<CodeLens>,
pub server_id: Arc<str>,
}Expand description
4.5.d: per-buffer cache of textDocument/codeLens results.
Filled by the pump on doc-version change or after
workspace/codeLens/refresh evicts the entry. The
:lsp-code-lens picker reads the cache; accept routes the
chosen lens’s command through workspace/executeCommand.
Fields§
§document_version: u64§lenses: Vec<CodeLens>§server_id: Arc<str>Which server produced the cached batch. Code-lens
command payloads are server-specific; routing the
executeCommand to the originating server keeps the
dispatch unambiguous when multiple servers attach.
Trait Implementations§
Source§impl Clone for LspCodeLensCache
impl Clone for LspCodeLensCache
Source§fn clone(&self) -> LspCodeLensCache
fn clone(&self) -> LspCodeLensCache
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 LspCodeLensCache
impl RefUnwindSafe for LspCodeLensCache
impl Send for LspCodeLensCache
impl Sync for LspCodeLensCache
impl Unpin for LspCodeLensCache
impl UnsafeUnpin for LspCodeLensCache
impl UnwindSafe for LspCodeLensCache
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