Class: LSP::FoldingRangeClientCapabilities
- Defined in:
- lib/lsp/lsp_protocol_foldingrange.rb
Overview
export interface FoldingRangeClientCapabilities
/**
* 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.
*/
dynamicRegistration?: boolean;
/**
* 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.
*/
rangeLimit?: number;
/**
* 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.
*/
lineFoldingOnly?: boolean;
Instance Attribute Summary collapse
-
#dynamicRegistration ⇒ Object
type: boolean # type: number # type: boolean.
-
#lineFoldingOnly ⇒ Object
type: boolean # type: number # type: boolean.
-
#rangeLimit ⇒ Object
type: boolean # type: number # type: boolean.
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ FoldingRangeClientCapabilities
constructor
A new instance of FoldingRangeClientCapabilities.
Methods inherited from LSPBase
Constructor Details
#initialize(initial_hash = nil) ⇒ FoldingRangeClientCapabilities
Returns a new instance of FoldingRangeClientCapabilities.
32 33 34 35 |
# File 'lib/lsp/lsp_protocol_foldingrange.rb', line 32 def initialize(initial_hash = nil) super @optional_method_names = i[dynamicRegistration rangeLimit lineFoldingOnly] end |
Instance Attribute Details
#dynamicRegistration ⇒ Object
type: boolean # type: number # type: boolean
30 31 32 |
# File 'lib/lsp/lsp_protocol_foldingrange.rb', line 30 def dynamicRegistration @dynamicRegistration end |
#lineFoldingOnly ⇒ Object
type: boolean # type: number # type: boolean
30 31 32 |
# File 'lib/lsp/lsp_protocol_foldingrange.rb', line 30 def lineFoldingOnly @lineFoldingOnly end |
#rangeLimit ⇒ Object
type: boolean # type: number # type: boolean
30 31 32 |
# File 'lib/lsp/lsp_protocol_foldingrange.rb', line 30 def rangeLimit @rangeLimit end |
Instance Method Details
#from_h!(value) ⇒ Object
37 38 39 40 41 42 43 |
# File 'lib/lsp/lsp_protocol_foldingrange.rb', line 37 def from_h!(value) value = {} if value.nil? self.dynamicRegistration = value['dynamicRegistration'] # Unknown type self.rangeLimit = value['rangeLimit'] self.lineFoldingOnly = value['lineFoldingOnly'] # Unknown type self end |