lsp_types::request

Trait Request

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

    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 CallHierarchyIncomingCalls

Source§

impl Request for CallHierarchyOutgoingCalls

Source§

impl Request for CallHierarchyPrepare

Source§

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

Source§

type Params = CallHierarchyPrepareParams

Source§

type Result = Option<Vec<CallHierarchyItem>>

Source§

impl Request for CodeActionRequest

Source§

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

Source§

type Params = CodeActionParams

Source§

type Result = Option<Vec<CodeActionOrCommand>>

Source§

impl Request for CodeActionResolveRequest

Source§

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

Source§

type Params = CodeAction

Source§

type Result = CodeAction

Source§

impl Request for CodeLensRefresh

Source§

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

Source§

type Params = ()

Source§

type Result = ()

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 DocumentDiagnosticRequest

Source§

impl Request for DocumentHighlightRequest

Source§

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

Source§

type Params = DocumentHighlightParams

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§

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

Source§

type Params = GotoDefinitionParams

Source§

type Result = Option<GotoDefinitionResponse>

Source§

impl Request for GotoDefinition

Source§

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

Source§

type Params = GotoDefinitionParams

Source§

type Result = Option<GotoDefinitionResponse>

Source§

impl Request for GotoImplementation

Source§

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

Source§

type Params = GotoDefinitionParams

Source§

type Result = Option<GotoDefinitionResponse>

Source§

impl Request for GotoTypeDefinition

Source§

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

Source§

type Params = GotoDefinitionParams

Source§

type Result = Option<GotoDefinitionResponse>

Source§

impl Request for HoverRequest

Source§

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

Source§

type Params = HoverParams

Source§

type Result = Option<Hover>

Source§

impl Request for Initialize

Source§

impl Request for InlayHintRefreshRequest

Source§

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

Source§

type Params = ()

Source§

type Result = ()

Source§

impl Request for InlayHintRequest

Source§

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

Source§

type Params = InlayHintParams

Source§

type Result = Option<Vec<InlayHint>>

Source§

impl Request for InlayHintResolveRequest

Source§

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

Source§

type Params = InlayHint

Source§

type Result = InlayHint

Source§

impl Request for InlineValueRefreshRequest

Source§

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

Source§

type Params = ()

Source§

type Result = ()

Source§

impl Request for InlineValueRequest

Source§

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

Source§

type Params = InlineValueParams

Source§

type Result = Option<InlineValue>

Source§

impl Request for LinkedEditingRange

Source§

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

Source§

type Params = LinkedEditingRangeParams

Source§

type Result = Option<LinkedEditingRanges>

Source§

impl Request for MonikerRequest

Source§

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

Source§

type Params = MonikerParams

Source§

type Result = Option<Vec<Moniker>>

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 SelectionRangeRequest

Source§

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

Source§

type Params = SelectionRangeParams

Source§

type Result = Option<Vec<SelectionRange>>

Source§

impl Request for SemanticTokensFullDeltaRequest

Source§

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

Source§

type Params = SemanticTokensDeltaParams

Source§

type Result = Option<SemanticTokensFullDeltaResult>

Source§

impl Request for SemanticTokensFullRequest

Source§

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

Source§

type Params = SemanticTokensParams

Source§

type Result = Option<SemanticTokensResult>

Source§

impl Request for SemanticTokensRangeRequest

Source§

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

Source§

type Params = SemanticTokensRangeParams

Source§

type Result = Option<SemanticTokensRangeResult>

Source§

impl Request for SemanticTokensRefresh

Source§

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

Source§

type Params = ()

Source§

type Result = ()

Source§

impl Request for ShowDocument

Source§

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

Source§

type Params = ShowDocumentParams

Source§

type Result = ShowDocumentResult

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 = SignatureHelpParams

Source§

type Result = Option<SignatureHelp>

Source§

impl Request for TypeHierarchyPrepare

Source§

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

Source§

type Params = TypeHierarchyPrepareParams

Source§

type Result = Option<Vec<TypeHierarchyItem>>

Source§

impl Request for TypeHierarchySubtypes

Source§

impl Request for TypeHierarchySupertypes

Source§

impl Request for UnregisterCapability

Source§

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

Source§

type Params = UnregistrationParams

Source§

type Result = ()

Source§

impl Request for WillCreateFiles

Source§

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

Source§

type Params = CreateFilesParams

Source§

type Result = Option<WorkspaceEdit>

Source§

impl Request for WillDeleteFiles

Source§

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

Source§

type Params = DeleteFilesParams

Source§

type Result = Option<WorkspaceEdit>

Source§

impl Request for WillRenameFiles

Source§

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

Source§

type Params = RenameFilesParams

Source§

type Result = Option<WorkspaceEdit>

Source§

impl Request for WillSaveWaitUntil

Source§

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

Source§

type Params = WillSaveTextDocumentParams

Source§

type Result = Option<Vec<TextEdit>>

Source§

impl Request for WorkDoneProgressCreate

Source§

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

Source§

type Params = WorkDoneProgressCreateParams

Source§

type Result = ()

Source§

impl Request for WorkspaceConfiguration

Source§

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

Source§

type Params = ConfigurationParams

Source§

type Result = Vec<Value>

Source§

impl Request for WorkspaceDiagnosticRefresh

Source§

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

Source§

type Params = ()

Source§

type Result = ()

Source§

impl Request for WorkspaceDiagnosticRequest

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 WorkspaceSymbolRequest

Source§

impl Request for WorkspaceSymbolResolve

Source§

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

Source§

type Params = WorkspaceSymbol

Source§

type Result = WorkspaceSymbol