struct LSP::ClientCapabilities

Overview

ClientCapabilities define capabilities for dynamic registration, workspace and text document features the client supports. The experimental can be used to pass experimental capabilities under development. For future compatibility a ClientCapabilities object literal can have more properties set than currently defined. Servers receiving a ClientCapabilities object literal with unknown properties should ignore these properties. A missing property should be interpreted as an absence of the capability. If a missing property normally defines sub properties, all missing sub properties should be interpreted as an absence of the corresponding capability.

Included Modules

Defined in:

base/capabilities/client_capabilities.cr

Constructors

Instance Method Summary

Constructor Detail

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

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

[View source]

Instance Method Detail

def experimental : JSON::Any | Nil #

Experimental client capabilities.


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

Experimental client capabilities.


[View source]
def ignore_diagnostics? : Bool #

[View source]
def text_document : TextDocumentClientCapabilities | Nil #

[View source]
def text_document=(text_document : TextDocumentClientCapabilities | Nil) #

[View source]
def window : Window | Nil #

Window specific client capabilities.


[View source]
def window=(window : Window | Nil) #

Window specific client capabilities.


[View source]
def workspace : Workspace | Nil #

Workspace specific client capabilities.


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

Workspace specific client capabilities.


[View source]