class

LSProtocol::ServerCapabilities

Inherits JSON::Serializable / Reference / Object

Defines the capabilities provided by a language server.

Constructors

new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

call_hierarchy_provider

The server provides call hierarchy support.

@since 3.16.0

Source
code_action_provider

The server provides code actions. CodeActionOptions may only be specified if the client states that it supports codeActionLiteralSupport in its initial initialize request.

Source
code_lens_provider

The server provides code lens.

Source
color_provider

The server provides color provider support.

Source
completion_provider

The server provides completion support.

Source
declaration_provider

The server provides Goto Declaration support.

Source
definition_provider

The server provides goto definition support.

Source
diagnostic_provider

The server has support for pull model diagnostics.

@since 3.17.0

Source
document_formatting_provider

The server provides document formatting.

Source
document_highlight_provider

The server provides document highlight support.

Source
document_on_type_formatting_provider

The server provides document formatting on typing.

Source
document_range_formatting_provider

The server provides document range formatting.

Source
document_symbol_provider

The server provides document symbol support.

Source
execute_command_provider

The server provides execute command support.

Source
experimental

Experimental server capabilities.

Source
folding_range_provider

The server provides folding provider support.

Source
hover_provider

The server provides hover support.

Source
implementation_provider

The server provides Goto Implementation support.

Source
inlay_hint_provider

The server provides inlay hints.

@since 3.17.0

Source
inline_completion_provider

Inline completion options used during static registration.

@since 3.18.0 @proposed

Source
inline_value_provider

The server provides inline values.

@since 3.17.0

Source
linked_editing_range_provider

The server provides linked editing range support.

@since 3.16.0

Source
moniker_provider

The server provides moniker support.

@since 3.16.0

Source
notebook_document_sync

Defines how notebook documents are synced.

@since 3.17.0

Source
position_encoding

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

Source
references_provider

The server provides find references support.

Source
rename_provider

The server provides rename support. RenameOptions may only be specified if the client states that it supports prepareSupport in its initial initialize request.

Source
selection_range_provider

The server provides selection range support.

Source
semantic_tokens_provider

The server provides semantic tokens support.

@since 3.16.0

Source
signature_help_provider

The server provides signature help support.

Source
text_document_sync

Defines how text documents are synced. Is either a detailed structure defining each notification or for backwards compatibility the TextDocumentSyncKind number.

Source
type_definition_provider

The server provides Goto Type Definition support.

Source
type_hierarchy_provider

The server provides type hierarchy support.

@since 3.17.0

Source
workspace

Workspace specific server capabilities.

Source
workspace_symbol_provider

The server provides workspace symbol support.

Source