Trait lsp2::request::Request

pub trait Request {
    type Params: DeserializeOwned + Serialize;
    type Result: DeserializeOwned + Serialize;

    const METHOD: &'static str;
}

Required Associated Types§

Required Associated Constants§

const METHOD: &'static str

Implementors§

§

impl Request for ApplyWorkspaceEdit

§

type Params = ApplyWorkspaceEditParams

§

type Result = ApplyWorkspaceEditResponse

§

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

§

impl Request for CallHierarchyIncomingCalls

§

type Params = CallHierarchyIncomingCallsParams

§

type Result = Option<Vec<CallHierarchyIncomingCall, Global>>

§

const METHOD: &'static str = "callHierarchy/incomingCalls"

§

impl Request for CallHierarchyOutgoingCalls

§

type Params = CallHierarchyOutgoingCallsParams

§

type Result = Option<Vec<CallHierarchyOutgoingCall, Global>>

§

const METHOD: &'static str = "callHierarchy/outgoingCalls"

§

impl Request for CallHierarchyPrepare

§

type Params = CallHierarchyPrepareParams

§

type Result = Option<Vec<CallHierarchyItem, Global>>

§

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

§

impl Request for CodeActionRequest

§

type Params = CodeActionParams

§

type Result = Option<Vec<CodeActionOrCommand, Global>>

§

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

§

impl Request for CodeActionResolveRequest

§

type Params = CodeAction

§

type Result = CodeAction

§

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

§

impl Request for CodeLensRefresh

§

type Params = ()

§

type Result = ()

§

const METHOD: &'static str = "workspace/codeLens/refresh"

§

impl Request for CodeLensRequest

§

type Params = CodeLensParams

§

type Result = Option<Vec<CodeLens, Global>>

§

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

§

impl Request for CodeLensResolve

§

type Params = CodeLens

§

type Result = CodeLens

§

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

§

impl Request for ColorPresentationRequest

§

type Params = ColorPresentationParams

§

type Result = Vec<ColorPresentation, Global>

§

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

§

impl Request for Completion

§

type Params = CompletionParams

§

type Result = Option<CompletionResponse>

§

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

§

impl Request for DocumentColor

§

type Params = DocumentColorParams

§

type Result = Vec<ColorInformation, Global>

§

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

§

impl Request for DocumentDiagnosticRequest

§

type Params = DocumentDiagnosticParams

§

type Result = DocumentDiagnosticReportResult

§

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

§

impl Request for DocumentHighlightRequest

§

type Params = DocumentHighlightParams

§

type Result = Option<Vec<DocumentHighlight, Global>>

§

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

§

impl Request for DocumentLinkRequest

§

type Params = DocumentLinkParams

§

type Result = Option<Vec<DocumentLink, Global>>

§

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

§

impl Request for DocumentLinkResolve

§

type Params = DocumentLink

§

type Result = DocumentLink

§

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

§

impl Request for DocumentSymbolRequest

§

type Params = DocumentSymbolParams

§

type Result = Option<DocumentSymbolResponse>

§

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

§

impl Request for ExecuteCommand

§

type Params = ExecuteCommandParams

§

type Result = Option<Value>

§

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

§

impl Request for FoldingRangeRequest

§

type Params = FoldingRangeParams

§

type Result = Option<Vec<FoldingRange, Global>>

§

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

§

impl Request for Formatting

§

type Params = DocumentFormattingParams

§

type Result = Option<Vec<TextEdit, Global>>

§

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

§

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.

§

type Params = GotoDefinitionParams

§

type Result = Option<GotoDefinitionResponse>

§

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

§

impl Request for GotoDefinition

§

type Params = GotoDefinitionParams

§

type Result = Option<GotoDefinitionResponse>

§

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

§

impl Request for GotoImplementation

§

type Params = GotoDefinitionParams

§

type Result = Option<GotoDefinitionResponse>

§

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

§

impl Request for GotoTypeDefinition

§

type Params = GotoDefinitionParams

§

type Result = Option<GotoDefinitionResponse>

§

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

§

impl Request for HoverRequest

§

type Params = HoverParams

§

type Result = Option<Hover>

§

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

§

impl Request for Initialize

§

type Params = InitializeParams

§

type Result = InitializeResult

§

const METHOD: &'static str = "initialize"

§

impl Request for InlayHintRefreshRequest

§

type Params = ()

§

type Result = ()

§

const METHOD: &'static str = "workspace/inlayHint/refresh"

§

impl Request for InlayHintRequest

§

type Params = InlayHintParams

§

type Result = Option<Vec<InlayHint, Global>>

§

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

§

impl Request for InlayHintResolveRequest

§

type Params = InlayHint

§

type Result = InlayHint

§

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

§

impl Request for InlineValueRefreshRequest

§

type Params = ()

§

type Result = ()

§

const METHOD: &'static str = "workspace/inlineValue/refresh"

§

impl Request for InlineValueRequest

§

type Params = InlineValueParams

§

type Result = Option<InlineValue>

§

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

§

impl Request for LinkedEditingRange

§

type Params = LinkedEditingRangeParams

§

type Result = Option<LinkedEditingRanges>

§

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

§

impl Request for MonikerRequest

§

type Params = MonikerParams

§

type Result = Option<Vec<Moniker, Global>>

§

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

§

impl Request for OnTypeFormatting

§

type Params = DocumentOnTypeFormattingParams

§

type Result = Option<Vec<TextEdit, Global>>

§

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

§

impl Request for PrepareRenameRequest

§

type Params = TextDocumentPositionParams

§

type Result = Option<PrepareRenameResponse>

§

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

§

impl Request for RangeFormatting

§

type Params = DocumentRangeFormattingParams

§

type Result = Option<Vec<TextEdit, Global>>

§

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

§

impl Request for References

§

type Params = ReferenceParams

§

type Result = Option<Vec<Location, Global>>

§

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

§

impl Request for RegisterCapability

§

type Params = RegistrationParams

§

type Result = ()

§

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

§

impl Request for Rename

§

type Params = RenameParams

§

type Result = Option<WorkspaceEdit>

§

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

§

impl Request for ResolveCompletionItem

§

type Params = CompletionItem

§

type Result = CompletionItem

§

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

§

impl Request for SelectionRangeRequest

§

type Params = SelectionRangeParams

§

type Result = Option<Vec<SelectionRange, Global>>

§

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

§

impl Request for SemanticTokensFullDeltaRequest

§

type Params = SemanticTokensDeltaParams

§

type Result = Option<SemanticTokensFullDeltaResult>

§

const METHOD: &'static str = "textDocument/semanticTokens/full/delta"

§

impl Request for SemanticTokensFullRequest

§

type Params = SemanticTokensParams

§

type Result = Option<SemanticTokensResult>

§

const METHOD: &'static str = "textDocument/semanticTokens/full"

§

impl Request for SemanticTokensRangeRequest

§

type Params = SemanticTokensRangeParams

§

type Result = Option<SemanticTokensRangeResult>

§

const METHOD: &'static str = "textDocument/semanticTokens/range"

§

impl Request for SemanticTokensRefresh

§

type Params = ()

§

type Result = ()

§

const METHOD: &'static str = "workspace/semanticTokens/refresh"

§

impl Request for ShowDocument

§

type Params = ShowDocumentParams

§

type Result = ShowDocumentResult

§

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

§

impl Request for ShowMessageRequest

§

type Params = ShowMessageRequestParams

§

type Result = Option<MessageActionItem>

§

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

§

impl Request for Shutdown

§

type Params = ()

§

type Result = ()

§

const METHOD: &'static str = "shutdown"

§

impl Request for SignatureHelpRequest

§

type Params = SignatureHelpParams

§

type Result = Option<SignatureHelp>

§

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

§

impl Request for TypeHierarchyPrepare

§

type Params = TypeHierarchyPrepareParams

§

type Result = Option<Vec<TypeHierarchyItem, Global>>

§

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

§

impl Request for TypeHierarchySubtypes

§

type Params = TypeHierarchySubtypesParams

§

type Result = Option<Vec<TypeHierarchyItem, Global>>

§

const METHOD: &'static str = "typeHierarchy/subtypes"

§

impl Request for TypeHierarchySupertypes

§

type Params = TypeHierarchySupertypesParams

§

type Result = Option<Vec<TypeHierarchyItem, Global>>

§

const METHOD: &'static str = "typeHierarchy/supertypes"

§

impl Request for UnregisterCapability

§

type Params = UnregistrationParams

§

type Result = ()

§

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

§

impl Request for WillCreateFiles

§

type Params = CreateFilesParams

§

type Result = Option<WorkspaceEdit>

§

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

§

impl Request for WillDeleteFiles

§

type Params = DeleteFilesParams

§

type Result = Option<WorkspaceEdit>

§

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

§

impl Request for WillRenameFiles

§

type Params = RenameFilesParams

§

type Result = Option<WorkspaceEdit>

§

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

§

impl Request for WillSaveWaitUntil

§

type Params = WillSaveTextDocumentParams

§

type Result = Option<Vec<TextEdit, Global>>

§

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

§

impl Request for WorkDoneProgressCreate

§

type Params = WorkDoneProgressCreateParams

§

type Result = ()

§

const METHOD: &'static str = "window/workDoneProgress/create"

§

impl Request for WorkspaceConfiguration

§

type Params = ConfigurationParams

§

type Result = Vec<Value, Global>

§

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

§

impl Request for WorkspaceDiagnosticRefresh

§

type Params = ()

§

type Result = ()

§

const METHOD: &'static str = "workspace/diagnostic/refresh"

§

impl Request for WorkspaceDiagnosticRequest

§

type Params = WorkspaceDiagnosticParams

§

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

§

type Result = WorkspaceDiagnosticReportResult

§

impl Request for WorkspaceFoldersRequest

§

type Params = ()

§

type Result = Option<Vec<WorkspaceFolder, Global>>

§

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

§

impl Request for WorkspaceSymbolRequest

§

type Params = WorkspaceSymbolParams

§

type Result = Option<WorkspaceSymbolResponse>

§

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

§

impl Request for WorkspaceSymbolResolve

§

type Params = WorkspaceSymbol

§

type Result = WorkspaceSymbol

§

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