Class: LSP::TextDocumentSyncOptions
- Defined in:
- lib/lsp/lsp_protocol.rb
Overview
export interface TextDocumentSyncOptions
/**
* Open and close notifications are sent to the server. If omitted open close notification should not
* be sent.
*/
openClose?: boolean;
/**
* Change notifications are sent to the server. See TextDocumentSyncKind.None, TextDocumentSyncKind.Full
* and TextDocumentSyncKind.Incremental. If omitted it defaults to TextDocumentSyncKind.None.
*/
change?: TextDocumentSyncKind;
/**
* If present will save notifications are sent to the server. If omitted the notification should not be
* sent.
*/
willSave?: boolean;
/**
* If present will save wait until requests are sent to the server. If omitted the request should not be
* sent.
*/
willSaveWaitUntil?: boolean;
/**
* If present save notifications are sent to the server. If omitted the notification should not be
* sent.
*/
save?: SaveOptions;
Instance Attribute Summary collapse
-
#change ⇒ Object
type: boolean # type: TextDocumentSyncKind # type: boolean # type: boolean # type: SaveOptions.
-
#openClose ⇒ Object
type: boolean # type: TextDocumentSyncKind # type: boolean # type: boolean # type: SaveOptions.
-
#save ⇒ Object
type: boolean # type: TextDocumentSyncKind # type: boolean # type: boolean # type: SaveOptions.
-
#willSave ⇒ Object
type: boolean # type: TextDocumentSyncKind # type: boolean # type: boolean # type: SaveOptions.
-
#willSaveWaitUntil ⇒ Object
type: boolean # type: TextDocumentSyncKind # type: boolean # type: boolean # type: SaveOptions.
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ TextDocumentSyncOptions
constructor
A new instance of TextDocumentSyncOptions.
Methods inherited from LSPBase
Constructor Details
#initialize(initial_hash = nil) ⇒ TextDocumentSyncOptions
Returns a new instance of TextDocumentSyncOptions.
525 526 527 528 |
# File 'lib/lsp/lsp_protocol.rb', line 525 def initialize(initial_hash = nil) super @optional_method_names = %i[openClose change willSave willSaveWaitUntil save] end |
Instance Attribute Details
#change ⇒ Object
type: boolean # type: TextDocumentSyncKind # type: boolean # type: boolean # type: SaveOptions
523 524 525 |
# File 'lib/lsp/lsp_protocol.rb', line 523 def change @change end |
#openClose ⇒ Object
type: boolean # type: TextDocumentSyncKind # type: boolean # type: boolean # type: SaveOptions
523 524 525 |
# File 'lib/lsp/lsp_protocol.rb', line 523 def openClose @openClose end |
#save ⇒ Object
type: boolean # type: TextDocumentSyncKind # type: boolean # type: boolean # type: SaveOptions
523 524 525 |
# File 'lib/lsp/lsp_protocol.rb', line 523 def save @save end |
#willSave ⇒ Object
type: boolean # type: TextDocumentSyncKind # type: boolean # type: boolean # type: SaveOptions
523 524 525 |
# File 'lib/lsp/lsp_protocol.rb', line 523 def willSave @willSave end |
#willSaveWaitUntil ⇒ Object
type: boolean # type: TextDocumentSyncKind # type: boolean # type: boolean # type: SaveOptions
523 524 525 |
# File 'lib/lsp/lsp_protocol.rb', line 523 def willSaveWaitUntil @willSaveWaitUntil end |
Instance Method Details
#from_h!(value) ⇒ Object
530 531 532 533 534 535 536 537 538 |
# File 'lib/lsp/lsp_protocol.rb', line 530 def from_h!(value) value = {} if value.nil? self.openClose = value['openClose'] # Unknown type self.change = value['change'] # Unknown type self.willSave = value['willSave'] # Unknown type self.willSaveWaitUntil = value['willSaveWaitUntil'] # Unknown type self.save = SaveOptions.new(value['save']) unless value['save'].nil? self end |