pub enum LSPCommand {
initialize {
id: usize,
params: InitializeParams,
},
initialized,
didOpen {
params: DidOpenTextDocumentParams,
},
didChange {
params: DidChangeTextDocumentParams,
},
hover {
id: usize,
params: TextDocumentPositionParams,
},
completion {
id: usize,
params: CompletionParams,
},
definition {
id: usize,
params: TextDocumentPositionParams,
},
references {
id: usize,
params: TextDocumentPositionParams,
},
rename {
id: usize,
params: RenameParams,
},
cancelRequest {
params: CancelParams,
},
completionItemResolve {
id: usize,
params: CompletionItem,
},
}
Expand description
The command given by the IDE to the LSP server. These represent the actions of the user in the IDE, as well as actions the IDE might perform as a result of user actions (like cancelling a task)
Variants§
initialize
initialized
didOpen
Fields
§
params: DidOpenTextDocumentParams
didChange
Fields
§
params: DidChangeTextDocumentParams
hover
completion
definition
references
rename
cancelRequest
Fields
§
params: CancelParams
completionItemResolve
Trait Implementations§
Source§impl Debug for LSPCommand
impl Debug for LSPCommand
Source§impl<'de> Deserialize<'de> for LSPCommand
impl<'de> Deserialize<'de> for LSPCommand
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LSPCommand
impl RefUnwindSafe for LSPCommand
impl Send for LSPCommand
impl Sync for LSPCommand
impl Unpin for LSPCommand
impl UnwindSafe for LSPCommand
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