Struct lsp_types::ServerCapabilities [−][src]
pub struct ServerCapabilities {Show 29 fields
pub text_document_sync: Option<TextDocumentSyncCapability>,
pub selection_range_provider: Option<SelectionRangeProviderCapability>,
pub hover_provider: Option<HoverProviderCapability>,
pub completion_provider: Option<CompletionOptions>,
pub signature_help_provider: Option<SignatureHelpOptions>,
pub definition_provider: Option<OneOf<bool, DefinitionOptions>>,
pub type_definition_provider: Option<TypeDefinitionProviderCapability>,
pub implementation_provider: Option<ImplementationProviderCapability>,
pub references_provider: Option<OneOf<bool, ReferencesOptions>>,
pub document_highlight_provider: Option<OneOf<bool, DocumentHighlightOptions>>,
pub document_symbol_provider: Option<OneOf<bool, DocumentSymbolOptions>>,
pub workspace_symbol_provider: Option<OneOf<bool, WorkspaceSymbolOptions>>,
pub code_action_provider: Option<CodeActionProviderCapability>,
pub code_lens_provider: Option<CodeLensOptions>,
pub document_formatting_provider: Option<OneOf<bool, DocumentFormattingOptions>>,
pub document_range_formatting_provider: Option<OneOf<bool, DocumentRangeFormattingOptions>>,
pub document_on_type_formatting_provider: Option<DocumentOnTypeFormattingOptions>,
pub rename_provider: Option<OneOf<bool, RenameOptions>>,
pub document_link_provider: Option<DocumentLinkOptions>,
pub color_provider: Option<ColorProviderCapability>,
pub folding_range_provider: Option<FoldingRangeProviderCapability>,
pub declaration_provider: Option<DeclarationCapability>,
pub execute_command_provider: Option<ExecuteCommandOptions>,
pub workspace: Option<WorkspaceServerCapabilities>,
pub call_hierarchy_provider: Option<CallHierarchyServerCapability>,
pub semantic_tokens_provider: Option<SemanticTokensServerCapabilities>,
pub moniker_provider: Option<OneOf<bool, MonikerServerCapabilities>>,
pub linked_editing_range_provider: Option<LinkedEditingRangeServerCapabilities>,
pub experimental: Option<Value>,
}
Fields
text_document_sync: Option<TextDocumentSyncCapability>
Defines how text documents are synced.
selection_range_provider: Option<SelectionRangeProviderCapability>
Capabilities specific to textDocument/selectionRange
requests.
hover_provider: Option<HoverProviderCapability>
The server provides hover support.
completion_provider: Option<CompletionOptions>
The server provides completion support.
signature_help_provider: Option<SignatureHelpOptions>
The server provides signature help support.
definition_provider: Option<OneOf<bool, DefinitionOptions>>
The server provides goto definition support.
type_definition_provider: Option<TypeDefinitionProviderCapability>
The server provides goto type definition support.
implementation_provider: Option<ImplementationProviderCapability>
the server provides goto implementation support.
references_provider: Option<OneOf<bool, ReferencesOptions>>
The server provides find references support.
document_highlight_provider: Option<OneOf<bool, DocumentHighlightOptions>>
The server provides document highlight support.
document_symbol_provider: Option<OneOf<bool, DocumentSymbolOptions>>
The server provides document symbol support.
workspace_symbol_provider: Option<OneOf<bool, WorkspaceSymbolOptions>>
The server provides workspace symbol support.
code_action_provider: Option<CodeActionProviderCapability>
The server provides code actions.
code_lens_provider: Option<CodeLensOptions>
The server provides code lens.
document_formatting_provider: Option<OneOf<bool, DocumentFormattingOptions>>
The server provides document formatting.
document_range_formatting_provider: Option<OneOf<bool, DocumentRangeFormattingOptions>>
The server provides document range formatting.
document_on_type_formatting_provider: Option<DocumentOnTypeFormattingOptions>
The server provides document formatting on typing.
rename_provider: Option<OneOf<bool, RenameOptions>>
The server provides rename support.
document_link_provider: Option<DocumentLinkOptions>
The server provides document link support.
color_provider: Option<ColorProviderCapability>
The server provides color provider support.
folding_range_provider: Option<FoldingRangeProviderCapability>
The server provides folding provider support.
declaration_provider: Option<DeclarationCapability>
The server provides go to declaration support.
execute_command_provider: Option<ExecuteCommandOptions>
The server provides execute command support.
workspace: Option<WorkspaceServerCapabilities>
Workspace specific server capabilities
call_hierarchy_provider: Option<CallHierarchyServerCapability>
Call hierarchy provider capabilities.
semantic_tokens_provider: Option<SemanticTokensServerCapabilities>
Semantic tokens server capabilities.
moniker_provider: Option<OneOf<bool, MonikerServerCapabilities>>
Whether server provides moniker support.
linked_editing_range_provider: Option<LinkedEditingRangeServerCapabilities>
The server provides linked editing range support.
@since 3.16.0
experimental: Option<Value>
Experimental server capabilities.
Trait Implementations
Returns the “default value” for a type. Read more
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ServerCapabilities
impl Send for ServerCapabilities
impl Sync for ServerCapabilities
impl Unpin for ServerCapabilities
impl UnwindSafe for ServerCapabilities
Blanket Implementations
Mutably borrows from an owned value. Read more