struct LSP::ServerCapabilities

Included Modules

Defined in:

lsp/protocol/server_capabilities.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(document_on_type_formatting_provider : LSP::DocumentOnTypeFormattingOptions, document_range_formatting_provider : Bool, document_formatting_provider : Bool, document_highlight_provider : Bool, workspace_symbol_provider : Bool, semantic_tokens_provider : LSP::SemanticTokensOptions, document_symbol_provider : Bool, type_definition_provider : Bool, execute_command_provider : LSP::ExecuteCommandOptions, signature_help_provider : LSP::SignatureHelpOptions, implementation_provider : Bool, folding_range_provider : Bool | LSP::FoldingRangeProviderOptions, document_link_provider : LSP::DocumentLinkOptions, code_action_provider : Bool | LSP::CodeActionOptions, declaration_provider : Bool, completion_provider : LSP::CompletionOptions, definition_provider : Bool, references_provider : Bool, code_lens_provider : LSP::CodeLensOptions, text_document_sync : Int32 | LSP::TextDocumentSyncOptions, rename_provider : Bool | LSP::RenameOptions, color_provider : Bool | LSP::ColorProviderOptions, hover_provider : Bool, workspace : LSP::Workspace) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def code_action_provider : Bool | CodeActionOptions #

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) #

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 #

The server provides code lens.


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

The server provides code lens.


[View source]
def color_provider : Bool | ColorProviderOptions #

The server provides color provider support.


[View source]
def color_provider=(color_provider : Bool | ColorProviderOptions) #

The server provides color provider support.


[View source]
def completion_provider : CompletionOptions #

The server provides completion support.


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

The server provides completion support.


[View source]
def declaration_provider=(declaration_provider : Bool) #

The server provides go to declaration support.


[View source]
def declaration_provider? : Bool #

The server provides go to declaration support.


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

The server provides goto definition support.


[View source]
def definition_provider? : Bool #

The server provides goto definition support.


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

The server provides document formatting.


[View source]
def document_formatting_provider? : Bool #

The server provides document formatting.


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

The server provides document highlight support.


[View source]
def document_highlight_provider? : Bool #

The server provides document highlight support.


[View source]
def document_link_provider : DocumentLinkOptions #

The server provides document link support.


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

The server provides document link support.


[View source]
def document_on_type_formatting_provider : DocumentOnTypeFormattingOptions #

The server provides document formatting on typing.


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

The server provides document formatting on typing.


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

The server provides document range formatting.


[View source]
def document_range_formatting_provider? : Bool #

The server provides document range formatting.


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

The server provides document symbol support.


[View source]
def document_symbol_provider? : Bool #

The server provides document symbol support.


[View source]
def execute_command_provider : ExecuteCommandOptions #

The server provides execute command support.


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

The server provides execute command support.


[View source]
def folding_range_provider : Bool | FoldingRangeProviderOptions #

The server provides folding provider support.


[View source]
def folding_range_provider=(folding_range_provider : Bool | FoldingRangeProviderOptions) #

The server provides folding provider support.


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

The server provides hover support.


[View source]
def hover_provider? : Bool #

The server provides hover support.


[View source]
def implementation_provider=(implementation_provider : Bool) #

The server provides Goto Implementation support.


[View source]
def implementation_provider? : Bool #

The server provides Goto Implementation support.


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

The server provides find references support.


[View source]
def references_provider? : Bool #

The server provides find references support.


[View source]
def rename_provider : Bool | RenameOptions #

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) #

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 semantic_tokens_provider : SemanticTokensOptions #

The server provides semantic tokens support.


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

The server provides semantic tokens support.


[View source]
def signature_help_provider : SignatureHelpOptions #

The server provides signature help support.


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

The server provides signature help support.


[View source]
def text_document_sync : TextDocumentSyncOptions | Int32 #

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 | Int32) #

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=(type_definition_provider : Bool) #

The server provides Goto Type Definition support.


[View source]
def type_definition_provider? : Bool #

The server provides Goto Type Definition support.


[View source]
def workspace : Workspace #

Workspace specific server capabilities


[View source]
def workspace=(workspace : Workspace) #

Workspace specific server capabilities


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

The server provides workspace symbol support.


[View source]
def workspace_symbol_provider? : Bool #

The server provides workspace symbol support.


[View source]