Struct lsp_types::ServerCapabilities
source · pub struct ServerCapabilities {Show 33 fields
pub position_encoding: Option<PositionEncodingKind>,
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 inline_value_provider: Option<OneOf<bool, InlineValueServerCapabilities>>,
pub inlay_hint_provider: Option<OneOf<bool, InlayHintServerCapabilities>>,
pub diagnostic_provider: Option<DiagnosticServerCapabilities>,
pub experimental: Option<Value>,
}
Fields§
§position_encoding: Option<PositionEncodingKind>
The position encoding the server picked from the encodings offered
by the client via the client capability general.positionEncodings
.
If the client didn’t provide any position encodings the only valid value that a server can return is ‘utf-16’.
If omitted it defaults to ‘utf-16’.
@since 3.17.0
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
inline_value_provider: Option<OneOf<bool, InlineValueServerCapabilities>>
The server provides inline values.
@since 3.17.0
inlay_hint_provider: Option<OneOf<bool, InlayHintServerCapabilities>>
The server provides inlay hints.
@since 3.17.0
diagnostic_provider: Option<DiagnosticServerCapabilities>
The server has support for pull model diagnostics.
@since 3.17.0
experimental: Option<Value>
Experimental server capabilities.
Trait Implementations§
source§impl Clone for ServerCapabilities
impl Clone for ServerCapabilities
source§fn clone(&self) -> ServerCapabilities
fn clone(&self) -> ServerCapabilities
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ServerCapabilities
impl Debug for ServerCapabilities
source§impl Default for ServerCapabilities
impl Default for ServerCapabilities
source§fn default() -> ServerCapabilities
fn default() -> ServerCapabilities
source§impl<'de> Deserialize<'de> for ServerCapabilities
impl<'de> Deserialize<'de> for ServerCapabilities
source§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>,
source§impl PartialEq for ServerCapabilities
impl PartialEq for ServerCapabilities
source§impl Serialize for ServerCapabilities
impl Serialize for ServerCapabilities
impl StructuralPartialEq for ServerCapabilities
Auto Trait Implementations§
impl Freeze for ServerCapabilities
impl RefUnwindSafe for ServerCapabilities
impl Send for ServerCapabilities
impl Sync for ServerCapabilities
impl Unpin for ServerCapabilities
impl UnwindSafe for ServerCapabilities
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)