struct LSP::ServerCapabilities

Included Modules

Defined in:

base/capabilities/server_capabilities.cr

Constructors

Instance Method Summary

Macros inherited from module JSON::Serializable

json_discriminator(field, mapping, *, default = nil) json_discriminator

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(**args) #

[View source]

Instance Method Detail

def code_action_provider : Bool | CodeActionOptions | Nil #

The server provides code actions. The CodeActionOptions return type is only valid if the client signals code action literal support via the property textDocument.codeAction.codeActionLiteralSupport.


[View source]
def code_action_provider=(code_action_provider : Bool | CodeActionOptions | Nil) #

The server provides code actions. The CodeActionOptions return type is only valid if the client signals code action literal support via the property textDocument.codeAction.codeActionLiteralSupport.


[View source]
def code_lens_provider : CodeLensOptions | Nil #

The server provides code lens.


[View source]
def code_lens_provider=(code_lens_provider : CodeLensOptions | Nil) #

The server provides code lens.


[View source]
def color_provider : Bool | DocumentColorOptions | DocumentColorRegistrationOptions | Nil #

The server provides color provider support.


[View source]
def color_provider=(color_provider : Bool | DocumentColorOptions | DocumentColorRegistrationOptions | Nil) #

The server provides color provider support.


[View source]
def completion_provider : CompletionOptions | Nil #

The server provides completion support.


[View source]
def completion_provider=(completion_provider : CompletionOptions | Nil) #

The server provides completion support.


[View source]
def declaration_provider : Bool | DeclarationOptions | DeclarationRegistrationOptions | Nil #

The server provides go to declaration support.


[View source]
def declaration_provider=(declaration_provider : Bool | DeclarationOptions | DeclarationRegistrationOptions | Nil) #

The server provides go to declaration support.


[View source]
def definition_provider : Bool | DefinitionOptions | Nil #

The server provides goto definition support.


[View source]
def definition_provider=(definition_provider : Bool | DefinitionOptions | Nil) #

The server provides goto definition support.


[View source]
def document_formatting_provider : Bool | DocumentFormattingOptions | Nil #

The server provides document formatting.


[View source]
def document_formatting_provider=(document_formatting_provider : Bool | DocumentFormattingOptions | Nil) #

The server provides document formatting.


[View source]
def document_highlight_provider : Bool | DocumentHighlightOptions | Nil #

The server provides document highlight support.


[View source]
def document_highlight_provider=(document_highlight_provider : Bool | DocumentHighlightOptions | Nil) #

The server provides document highlight support.


[View source]
def document_link_provider : DocumentLinkOptions | Nil #

The server provides document link support.


[View source]
def document_link_provider=(document_link_provider : DocumentLinkOptions | Nil) #

The server provides document link support.


[View source]
def document_on_type_formatting_provider : DocumentOnTypeFormattingOptions | Nil #

The server provides document formatting on typing.


[View source]
def document_on_type_formatting_provider=(document_on_type_formatting_provider : DocumentOnTypeFormattingOptions | Nil) #

The server provides document formatting on typing.


[View source]
def document_range_formatting_provider : Bool | DocumentRangeFormattingOptions | Nil #

The server provides document range formatting.


[View source]
def document_range_formatting_provider=(document_range_formatting_provider : Bool | DocumentRangeFormattingOptions | Nil) #

The server provides document range formatting.


[View source]
def document_symbol_provider : Bool | DocumentSymbolOptions | Nil #

The server provides document symbol support.


[View source]
def document_symbol_provider=(document_symbol_provider : Bool | DocumentSymbolOptions | Nil) #

The server provides document symbol support.


[View source]
def execute_command_provider : ExecuteCommandOptions | Nil #

The server provides execute command support.


[View source]
def execute_command_provider=(execute_command_provider : ExecuteCommandOptions | Nil) #

The server provides execute command support.


[View source]
def experimental : JSON::Any | Nil #

Experimental server capabilities.


[View source]
def experimental=(experimental : JSON::Any | Nil) #

Experimental server capabilities.


[View source]
def folding_range_provider : Bool | FoldingRangeOptions | FoldingRangeRegistrationOptions | Nil #

The server provides folding provider support.


[View source]
def folding_range_provider=(folding_range_provider : Bool | FoldingRangeOptions | FoldingRangeRegistrationOptions | Nil) #

The server provides folding provider support.


[View source]
def hover_provider : Bool | HoverOptions | Nil #

The server provides hover support.


[View source]
def hover_provider=(hover_provider : Bool | HoverOptions | Nil) #

The server provides hover support.


[View source]
def implementation_provider : Bool | ImplementationOptions | ImplementationRegistrationOptions | Nil #

The server provides goto implementation support.


[View source]
def implementation_provider=(implementation_provider : Bool | ImplementationOptions | ImplementationRegistrationOptions | Nil) #

The server provides goto implementation support.


[View source]
def references_provider : Bool | ReferenceOptions | Nil #

The server provides find references support.


[View source]
def references_provider=(references_provider : Bool | ReferenceOptions | Nil) #

The server provides find references support.


[View source]
def rename_provider : Bool | RenameOptions | Nil #

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


[View source]
def rename_provider=(rename_provider : Bool | RenameOptions | Nil) #

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


[View source]
def selection_range_provider : Bool | SelectionRangeOptions | SelectionRangeRegistrationOptions | Nil #

The server provides selection range support.


[View source]
def selection_range_provider=(selection_range_provider : Bool | SelectionRangeOptions | SelectionRangeRegistrationOptions | Nil) #

The server provides selection range support.


[View source]
def semantic_tokens_provider : SemanticTokensOptions | Nil #

The server provides semantic tokens support.


[View source]
def semantic_tokens_provider=(semantic_tokens_provider : SemanticTokensOptions | Nil) #

The server provides semantic tokens support.


[View source]
def signature_help_provider : SignatureHelpOptions | Nil #

The server provides signature help support.


[View source]
def signature_help_provider=(signature_help_provider : SignatureHelpOptions | Nil) #

The server provides signature help support.


[View source]
def text_document_sync : TextDocumentSyncOptions | TextDocumentSyncKind | Nil #

Defines how text documents are synced. Is either a detailed structure defining each notification or for backwards compatibility the TextDocumentSyncKind number. If omitted it defaults to TextDocumentSyncKind.None.


[View source]
def text_document_sync=(text_document_sync : TextDocumentSyncOptions | TextDocumentSyncKind | Nil) #

Defines how text documents are synced. Is either a detailed structure defining each notification or for backwards compatibility the TextDocumentSyncKind number. If omitted it defaults to TextDocumentSyncKind.None.


[View source]
def type_definition_provider : Bool | TypeDefinitionOptions | TypeDefinitionRegistrationOptions | Nil #

The server provides goto type definition support.


[View source]
def type_definition_provider=(type_definition_provider : Bool | TypeDefinitionOptions | TypeDefinitionRegistrationOptions | Nil) #

The server provides goto type definition support.


[View source]
def workspace : WorkspaceValue | Nil #

Workspace specific server capabilities


[View source]
def workspace=(workspace : WorkspaceValue | Nil) #

Workspace specific server capabilities


[View source]
def workspace_symbol_provider : Bool | Nil #

The server provides workspace symbol support.


[View source]
def workspace_symbol_provider=(workspace_symbol_provider : Bool | Nil) #

The server provides workspace symbol support.


[View source]