class LSProtocol::ServerCapabilities
- LSProtocol::ServerCapabilities
- Reference
- Object
Overview
Defines the capabilities provided by a language server.
Included Modules
- JSON::Serializable
Defined in:
lsprotocol/types.crConstructors
- .new(pull : JSON::PullParser)
- .new(call_hierarchy_provider : Bool | CallHierarchyOptions | CallHierarchyRegistrationOptions | Nil = nil, code_action_provider : Bool | CodeActionOptions | Nil = nil, code_lens_provider : CodeLensOptions | Nil = nil, color_provider : Bool | DocumentColorOptions | DocumentColorRegistrationOptions | Nil = nil, completion_provider : CompletionOptions | Nil = nil, declaration_provider : Bool | DeclarationOptions | DeclarationRegistrationOptions | Nil = nil, definition_provider : Bool | DefinitionOptions | Nil = nil, diagnostic_provider : DiagnosticOptions | DiagnosticRegistrationOptions | Nil = nil, document_formatting_provider : Bool | DocumentFormattingOptions | Nil = nil, document_highlight_provider : Bool | DocumentHighlightOptions | Nil = nil, document_link_provider : DocumentLinkOptions | Nil = nil, document_on_type_formatting_provider : DocumentOnTypeFormattingOptions | Nil = nil, document_range_formatting_provider : Bool | DocumentRangeFormattingOptions | Nil = nil, document_symbol_provider : Bool | DocumentSymbolOptions | Nil = nil, execute_command_provider : ExecuteCommandOptions | Nil = nil, experimental : LSPAny | Nil = nil, folding_range_provider : Bool | FoldingRangeOptions | FoldingRangeRegistrationOptions | Nil = nil, hover_provider : Bool | HoverOptions | Nil = nil, implementation_provider : Bool | ImplementationOptions | ImplementationRegistrationOptions | Nil = nil, inlay_hint_provider : Bool | InlayHintOptions | InlayHintRegistrationOptions | Nil = nil, inline_completion_provider : Bool | InlineCompletionOptions | Nil = nil, inline_value_provider : Bool | InlineValueOptions | InlineValueRegistrationOptions | Nil = nil, linked_editing_range_provider : Bool | LinkedEditingRangeOptions | LinkedEditingRangeRegistrationOptions | Nil = nil, moniker_provider : Bool | MonikerOptions | MonikerRegistrationOptions | Nil = nil, notebook_document_sync : NotebookDocumentSyncOptions | NotebookDocumentSyncRegistrationOptions | Nil = nil, position_encoding : PositionEncodingKind | String | Nil = nil, references_provider : Bool | ReferenceOptions | Nil = nil, rename_provider : Bool | RenameOptions | Nil = nil, selection_range_provider : Bool | SelectionRangeOptions | SelectionRangeRegistrationOptions | Nil = nil, semantic_tokens_provider : SemanticTokensOptions | SemanticTokensRegistrationOptions | Nil = nil, signature_help_provider : SignatureHelpOptions | Nil = nil, text_document_sync : TextDocumentSyncKind | TextDocumentSyncOptions | Nil = nil, type_definition_provider : Bool | TypeDefinitionOptions | TypeDefinitionRegistrationOptions | Nil = nil, type_hierarchy_provider : Bool | TypeHierarchyOptions | TypeHierarchyRegistrationOptions | Nil = nil, workspace : WorkspaceOptions | Nil = nil, workspace_symbol_provider : Bool | WorkspaceSymbolOptions | Nil = nil)
Instance Method Summary
-
#call_hierarchy_provider : Bool | CallHierarchyOptions | CallHierarchyRegistrationOptions | Nil
The server provides call hierarchy support.
-
#code_action_provider : Bool | CodeActionOptions | Nil
The server provides code actions.
-
#code_lens_provider : CodeLensOptions | Nil
The server provides code lens.
-
#color_provider : Bool | DocumentColorOptions | DocumentColorRegistrationOptions | Nil
The server provides color provider support.
-
#completion_provider : CompletionOptions | Nil
The server provides completion support.
-
#declaration_provider : Bool | DeclarationOptions | DeclarationRegistrationOptions | Nil
The server provides Goto Declaration support.
-
#definition_provider : Bool | DefinitionOptions | Nil
The server provides goto definition support.
-
#diagnostic_provider : DiagnosticOptions | DiagnosticRegistrationOptions | Nil
The server has support for pull model diagnostics.
-
#document_formatting_provider : Bool | DocumentFormattingOptions | Nil
The server provides document formatting.
-
#document_highlight_provider : Bool | DocumentHighlightOptions | Nil
The server provides document highlight support.
-
#document_link_provider : DocumentLinkOptions | Nil
The server provides document link support.
-
#document_on_type_formatting_provider : DocumentOnTypeFormattingOptions | Nil
The server provides document formatting on typing.
-
#document_range_formatting_provider : Bool | DocumentRangeFormattingOptions | Nil
The server provides document range formatting.
-
#document_symbol_provider : Bool | DocumentSymbolOptions | Nil
The server provides document symbol support.
-
#execute_command_provider : ExecuteCommandOptions | Nil
The server provides execute command support.
-
#experimental : LSPAny | Nil
Experimental server capabilities.
-
#folding_range_provider : Bool | FoldingRangeOptions | FoldingRangeRegistrationOptions | Nil
The server provides folding provider support.
-
#hover_provider : Bool | HoverOptions | Nil
The server provides hover support.
-
#implementation_provider : Bool | ImplementationOptions | ImplementationRegistrationOptions | Nil
The server provides Goto Implementation support.
-
#inlay_hint_provider : Bool | InlayHintOptions | InlayHintRegistrationOptions | Nil
The server provides inlay hints.
-
#inline_completion_provider : Bool | InlineCompletionOptions | Nil
Inline completion options used during static registration.
-
#inline_value_provider : Bool | InlineValueOptions | InlineValueRegistrationOptions | Nil
The server provides inline values.
-
#linked_editing_range_provider : Bool | LinkedEditingRangeOptions | LinkedEditingRangeRegistrationOptions | Nil
The server provides linked editing range support.
-
#moniker_provider : Bool | MonikerOptions | MonikerRegistrationOptions | Nil
The server provides moniker support.
-
#notebook_document_sync : NotebookDocumentSyncOptions | NotebookDocumentSyncRegistrationOptions | Nil
Defines how notebook documents are synced.
-
#position_encoding : PositionEncodingKind | String | Nil
The position encoding the server picked from the encodings offered by the client via the client capability
general.positionEncodings
. -
#references_provider : Bool | ReferenceOptions | Nil
The server provides find references support.
-
#rename_provider : Bool | RenameOptions | Nil
The server provides rename support.
-
#selection_range_provider : Bool | SelectionRangeOptions | SelectionRangeRegistrationOptions | Nil
The server provides selection range support.
-
#semantic_tokens_provider : SemanticTokensOptions | SemanticTokensRegistrationOptions | Nil
The server provides semantic tokens support.
-
#signature_help_provider : SignatureHelpOptions | Nil
The server provides signature help support.
-
#text_document_sync : TextDocumentSyncKind | TextDocumentSyncOptions | Nil
Defines how text documents are synced.
-
#type_definition_provider : Bool | TypeDefinitionOptions | TypeDefinitionRegistrationOptions | Nil
The server provides Goto Type Definition support.
-
#type_hierarchy_provider : Bool | TypeHierarchyOptions | TypeHierarchyRegistrationOptions | Nil
The server provides type hierarchy support.
-
#workspace : WorkspaceOptions | Nil
Workspace specific server capabilities.
-
#workspace_symbol_provider : Bool | WorkspaceSymbolOptions | Nil
The server provides workspace symbol support.
Constructor Detail
Instance Method Detail
The server provides call hierarchy support.
@since 3.16.0
The server provides code actions. CodeActionOptions may only be
specified if the client states that it supports
codeActionLiteralSupport
in its initial initialize
request.
The server provides color provider support.
The server provides Goto Declaration support.
The server provides goto definition support.
The server has support for pull model diagnostics.
@since 3.17.0
The server provides document formatting.
The server provides document highlight support.
The server provides document formatting on typing.
The server provides document range formatting.
The server provides document symbol support.
The server provides execute command support.
The server provides folding provider support.
The server provides Goto Implementation support.
The server provides inlay hints.
@since 3.17.0
Inline completion options used during static registration.
@since 3.18.0 @proposed
The server provides inline values.
@since 3.17.0
The server provides linked editing range support.
@since 3.16.0
The server provides moniker support.
@since 3.16.0
Defines how notebook documents are synced.
@since 3.17.0
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
The server provides find references support.
The server provides rename support. RenameOptions may only be
specified if the client states that it supports
prepareSupport
in its initial initialize
request.
The server provides selection range support.
The server provides semantic tokens support.
@since 3.16.0
The server provides signature help support.
Defines how text documents are synced. Is either a detailed structure defining each notification or for backwards compatibility the TextDocumentSyncKind number.
The server provides Goto Type Definition support.
The server provides type hierarchy support.
@since 3.17.0
The server provides workspace symbol support.