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,
},
}
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)
Fields of initialize
Fields of didOpen
Fields of didChange
Fields of hover
Fields of completion
Fields of definition
Fields of references
Fields of rename
Fields of cancelRequest
Fields of completionItemResolve
Formats the value using the given formatter. Read more
Serialize this value into the given Serde serializer. Read more
Deserialize this value from the given Serde deserializer. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static