class LSProtocol::FoldingRangeClientCapabilities

Included Modules

Defined in:

lsprotocol/types.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]
def self.new(dynamic_registration : Bool | Nil = nil, folding_range : ClientFoldingRangeOptions | Nil = nil, folding_range_kind : ClientFoldingRangeKindOptions | Nil = nil, line_folding_only : Bool | Nil = nil, range_limit : UInt32 | Nil = nil) #

[View source]

Instance Method Detail

def dynamic_registration : Bool | Nil #

Whether implementation supports dynamic registration for folding range providers. If this is set to true the client supports the new FoldingRangeRegistrationOptions return value for the corresponding server capability as well.


[View source]
def folding_range : ClientFoldingRangeOptions | Nil #

Specific options for the folding range.

@since 3.17.0


[View source]
def folding_range_kind : ClientFoldingRangeKindOptions | Nil #

Specific options for the folding range kind.

@since 3.17.0


[View source]
def line_folding_only : Bool | Nil #

If set, the client signals that it only supports folding complete lines. If set, client will ignore specified startCharacter and endCharacter properties in a FoldingRange.


[View source]
def range_limit : UInt32 | Nil #

The maximum number of folding ranges that the client prefers to receive per document. The value serves as a hint, servers are free to follow the limit.


[View source]