languageserver_types::request

Trait Request

Source
pub trait Request {
    type Params;
    type Result;

    const METHOD: &'static str;
}

Required Associated Constants§

Source

const METHOD: &'static str

Required Associated Types§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl Request for ApplyWorkspaceEdit

Source§

impl Request for CodeActionRequest

Source§

const METHOD: &'static str = "textDocument/codeAction"

Source§

type Params = CodeActionParams

Source§

type Result = Option<CodeActionResponse>

Source§

impl Request for CodeLensRequest

Source§

const METHOD: &'static str = "textDocument/codeLens"

Source§

type Params = CodeLensParams

Source§

type Result = Option<Vec<CodeLens>>

Source§

impl Request for CodeLensResolve

Source§

const METHOD: &'static str = "codeLens/resolve"

Source§

type Params = CodeLens

Source§

type Result = CodeLens

Source§

impl Request for ColorPresentationRequest

Source§

const METHOD: &'static str = "textDocument/colorPresentation"

Source§

type Params = ColorPresentationParams

Source§

type Result = Vec<ColorPresentation>

Source§

impl Request for Completion

Source§

const METHOD: &'static str = "textDocument/completion"

Source§

type Params = CompletionParams

Source§

type Result = Option<CompletionResponse>

Source§

impl Request for DocumentColor

Source§

const METHOD: &'static str = "textDocument/documentColor"

Source§

type Params = DocumentColorParams

Source§

type Result = Vec<ColorInformation>

Source§

impl Request for DocumentHighlightRequest

Source§

const METHOD: &'static str = "textDocument/documentHighlight"

Source§

type Params = TextDocumentPositionParams

Source§

type Result = Option<Vec<DocumentHighlight>>

Source§

impl Request for DocumentLinkRequest

Source§

const METHOD: &'static str = "textDocument/documentLink"

Source§

type Params = DocumentLinkParams

Source§

type Result = Option<Vec<DocumentLink>>

Source§

impl Request for DocumentLinkResolve

Source§

const METHOD: &'static str = "documentLink/resolve"

Source§

type Params = DocumentLink

Source§

type Result = DocumentLink

Source§

impl Request for DocumentSymbolRequest

Source§

const METHOD: &'static str = "textDocument/documentSymbol"

Source§

type Params = DocumentSymbolParams

Source§

type Result = Option<DocumentSymbolResponse>

Source§

impl Request for ExecuteCommand

Source§

const METHOD: &'static str = "workspace/executeCommand"

Source§

type Params = ExecuteCommandParams

Source§

type Result = Option<Value>

Source§

impl Request for FoldingRangeRequest

Source§

const METHOD: &'static str = "textDocument/foldingRange"

Source§

type Params = FoldingRangeParams

Source§

type Result = Option<Vec<FoldingRange>>

Source§

impl Request for Formatting

Source§

const METHOD: &'static str = "textDocument/formatting"

Source§

type Params = DocumentFormattingParams

Source§

type Result = Option<Vec<TextEdit>>

Source§

impl Request for GotoDeclaration

The goto declaration request is sent from the client to the server to resolve the declaration location of a symbol at a given text document position.

Source§

impl Request for GotoDefinition

Source§

impl Request for GotoImplementation

Source§

const METHOD: &'static str = "textDocument/implementation"

Source§

type Params = TextDocumentPositionParams

Source§

type Result = Option<GotoDefinitionResponse>

Source§

impl Request for GotoTypeDefinition

Source§

const METHOD: &'static str = "textDocument/typeDefinition"

Source§

type Params = TextDocumentPositionParams

Source§

type Result = Option<GotoDefinitionResponse>

Source§

impl Request for HoverRequest

Source§

const METHOD: &'static str = "textDocument/hover"

Source§

type Params = TextDocumentPositionParams

Source§

type Result = Option<Hover>

Source§

impl Request for Initialize

Source§

impl Request for OnTypeFormatting

Source§

const METHOD: &'static str = "textDocument/onTypeFormatting"

Source§

type Params = DocumentOnTypeFormattingParams

Source§

type Result = Option<Vec<TextEdit>>

Source§

impl Request for PrepareRenameRequest

Source§

const METHOD: &'static str = "textDocument/prepareRename"

Source§

type Params = TextDocumentPositionParams

Source§

type Result = Option<PrepareRenameResponse>

Source§

impl Request for RangeFormatting

Source§

const METHOD: &'static str = "textDocument/rangeFormatting"

Source§

type Params = DocumentRangeFormattingParams

Source§

type Result = Option<Vec<TextEdit>>

Source§

impl Request for References

Source§

const METHOD: &'static str = "textDocument/references"

Source§

type Params = ReferenceParams

Source§

type Result = Option<Vec<Location>>

Source§

impl Request for RegisterCapability

Source§

const METHOD: &'static str = "client/registerCapability"

Source§

type Params = RegistrationParams

Source§

type Result = ()

Source§

impl Request for Rename

Source§

const METHOD: &'static str = "textDocument/rename"

Source§

type Params = RenameParams

Source§

type Result = Option<WorkspaceEdit>

Source§

impl Request for ResolveCompletionItem

Source§

const METHOD: &'static str = "completionItem/resolve"

Source§

type Params = CompletionItem

Source§

type Result = CompletionItem

Source§

impl Request for ShowMessageRequest

Source§

const METHOD: &'static str = "window/showMessageRequest"

Source§

type Params = ShowMessageRequestParams

Source§

type Result = Option<MessageActionItem>

Source§

impl Request for Shutdown

Source§

const METHOD: &'static str = "shutdown"

Source§

type Params = ()

Source§

type Result = ()

Source§

impl Request for SignatureHelpRequest

Source§

const METHOD: &'static str = "textDocument/signatureHelp"

Source§

type Params = TextDocumentPositionParams

Source§

type Result = Option<SignatureHelp>

Source§

impl Request for UnregisterCapability

Source§

const METHOD: &'static str = "client/unregisterCapability"

Source§

type Params = UnregistrationParams

Source§

type Result = ()

Source§

impl Request for WorkspaceFoldersRequest

Source§

const METHOD: &'static str = "workspace/workspaceFolders"

Source§

type Params = ()

Source§

type Result = Option<Vec<WorkspaceFolder>>

Source§

impl Request for WorkspaceSymbol