Class: LSP::TextDocumentSyncClientCapabilities
- Defined in:
- lib/lsp/lsp_protocol.rb
Overview
export interface TextDocumentSyncClientCapabilities
/**
* Whether text document synchronization supports dynamic registration.
*/
dynamicRegistration?: boolean;
/**
* The client supports sending will save notifications.
*/
willSave?: boolean;
/**
* The client supports sending a will save request and
* waits for a response providing text edits which will
* be applied to the document before it is saved.
*/
willSaveWaitUntil?: boolean;
/**
* The client supports did save notifications.
*/
didSave?: boolean;
Instance Attribute Summary collapse
-
#didSave ⇒ Object
type: boolean # type: boolean # type: boolean # type: boolean.
-
#dynamicRegistration ⇒ Object
type: boolean # type: boolean # type: boolean # type: boolean.
-
#willSave ⇒ Object
type: boolean # type: boolean # type: boolean # type: boolean.
-
#willSaveWaitUntil ⇒ Object
type: boolean # type: boolean # type: boolean # type: boolean.
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ TextDocumentSyncClientCapabilities
constructor
A new instance of TextDocumentSyncClientCapabilities.
Methods inherited from LSPBase
Constructor Details
#initialize(initial_hash = nil) ⇒ TextDocumentSyncClientCapabilities
Returns a new instance of TextDocumentSyncClientCapabilities.
480 481 482 483 |
# File 'lib/lsp/lsp_protocol.rb', line 480 def initialize(initial_hash = nil) super @optional_method_names = %i[dynamicRegistration willSave willSaveWaitUntil didSave] end |
Instance Attribute Details
#didSave ⇒ Object
type: boolean # type: boolean # type: boolean # type: boolean
478 479 480 |
# File 'lib/lsp/lsp_protocol.rb', line 478 def didSave @didSave end |
#dynamicRegistration ⇒ Object
type: boolean # type: boolean # type: boolean # type: boolean
478 479 480 |
# File 'lib/lsp/lsp_protocol.rb', line 478 def dynamicRegistration @dynamicRegistration end |
#willSave ⇒ Object
type: boolean # type: boolean # type: boolean # type: boolean
478 479 480 |
# File 'lib/lsp/lsp_protocol.rb', line 478 def willSave @willSave end |
#willSaveWaitUntil ⇒ Object
type: boolean # type: boolean # type: boolean # type: boolean
478 479 480 |
# File 'lib/lsp/lsp_protocol.rb', line 478 def willSaveWaitUntil @willSaveWaitUntil end |
Instance Method Details
#from_h!(value) ⇒ Object
485 486 487 488 489 490 491 492 |
# File 'lib/lsp/lsp_protocol.rb', line 485 def from_h!(value) value = {} if value.nil? self.dynamicRegistration = value['dynamicRegistration'] # Unknown type self.willSave = value['willSave'] # Unknown type self.willSaveWaitUntil = value['willSaveWaitUntil'] # Unknown type self.didSave = value['didSave'] # Unknown type self end |