[][src]Enum lark_language_server::LSPCommand

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)

Variants

initialize

Fields of initialize

id: usizeparams: InitializeParams
initializeddidOpen

Fields of didOpen

params: DidOpenTextDocumentParams
didChange

Fields of didChange

params: DidChangeTextDocumentParams
hover

Fields of hover

id: usizeparams: TextDocumentPositionParams
completion

Fields of completion

id: usizeparams: CompletionParams
definition

Fields of definition

id: usizeparams: TextDocumentPositionParams
references

Fields of references

id: usizeparams: TextDocumentPositionParams
rename

Fields of rename

id: usizeparams: RenameParams
cancelRequest

Fields of cancelRequest

params: CancelParams
completionItemResolve

Fields of completionItemResolve

id: usizeparams: CompletionItem

Trait Implementations

impl Debug for LSPCommand
[src]

impl Serialize for LSPCommand
[src]

impl<'de> Deserialize<'de> for LSPCommand
[src]

Auto Trait Implementations

impl Send for LSPCommand

impl Sync for LSPCommand

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]