pub struct NoopLspBackend;Expand description
Backend whose capabilities are all false and whose methods use trait defaults.
§Examples
use ailloli_ui_editor::{LspBackend, LspCapabilities, NoopLspBackend};
assert_eq!(NoopLspBackend.capabilities(), LspCapabilities::default());Trait Implementations§
Source§impl Debug for NoopLspBackend
impl Debug for NoopLspBackend
Source§impl Default for NoopLspBackend
impl Default for NoopLspBackend
Source§fn default() -> NoopLspBackend
fn default() -> NoopLspBackend
Returns the “default value” for a type. Read more
Source§impl LspBackend for NoopLspBackend
Advertises no optional LSP capabilities.
impl LspBackend for NoopLspBackend
Advertises no optional LSP capabilities.
Source§fn capabilities(&self) -> LspCapabilities
fn capabilities(&self) -> LspCapabilities
Returns LspCapabilities::default.
Source§fn open_document(&mut self, _document: &Document) -> Result<(), LspError>
fn open_document(&mut self, _document: &Document) -> Result<(), LspError>
Notifies the backend that a document opened. Read more
Source§fn change_document(&mut self, _document: &Document) -> Result<(), LspError>
fn change_document(&mut self, _document: &Document) -> Result<(), LspError>
Notifies the backend that document content or metadata changed. Read more
Source§fn close_document(&mut self, _document: &Document) -> Result<(), LspError>
fn close_document(&mut self, _document: &Document) -> Result<(), LspError>
Notifies the backend that a document closed. Read more
Source§fn cancel(&mut self, request_id: LspRequestId) -> Result<(), LspError>
fn cancel(&mut self, request_id: LspRequestId) -> Result<(), LspError>
Requests cancellation of an opaque request ID. Read more
Source§fn document_symbols(
&mut self,
_document: &Document,
) -> Result<Vec<SemanticDocumentSymbol>, LspError>
fn document_symbols( &mut self, _document: &Document, ) -> Result<Vec<SemanticDocumentSymbol>, LspError>
Returns semantic symbols for a document. Read more
Source§fn references(
&mut self,
_document: &Document,
) -> Result<Vec<SemanticReference>, LspError>
fn references( &mut self, _document: &Document, ) -> Result<Vec<SemanticReference>, LspError>
Returns semantic reference edges for a document. Read more
Source§fn diagnostics(
&mut self,
_document: &Document,
) -> Result<Vec<LspDiagnostic>, LspError>
fn diagnostics( &mut self, _document: &Document, ) -> Result<Vec<LspDiagnostic>, LspError>
Returns version-tagged diagnostics for a document. Read more
Auto Trait Implementations§
impl Freeze for NoopLspBackend
impl RefUnwindSafe for NoopLspBackend
impl Send for NoopLspBackend
impl Sync for NoopLspBackend
impl Unpin for NoopLspBackend
impl UnwindSafe for NoopLspBackend
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