Class: LSP::DidSaveTextDocumentParams
- Defined in:
- lib/lsp/lsp_protocol.rb
Overview
export interface DidSaveTextDocumentParams
/**
* The document that was closed.
*/
textDocument: VersionedTextDocumentIdentifier;
/**
* Optional the content when saved. Depends on the includeText value
* when the save notification was requested.
*/
text?: string;
Instance Attribute Summary collapse
-
#text ⇒ Object
type: VersionedTextDocumentIdentifier # type: string.
-
#textDocument ⇒ Object
type: VersionedTextDocumentIdentifier # type: string.
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ DidSaveTextDocumentParams
constructor
A new instance of DidSaveTextDocumentParams.
Methods inherited from LSPBase
Constructor Details
#initialize(initial_hash = nil) ⇒ DidSaveTextDocumentParams
Returns a new instance of DidSaveTextDocumentParams.
637 638 639 640 |
# File 'lib/lsp/lsp_protocol.rb', line 637 def initialize(initial_hash = nil) super @optional_method_names = i[text] end |
Instance Attribute Details
#text ⇒ Object
type: VersionedTextDocumentIdentifier # type: string
635 636 637 |
# File 'lib/lsp/lsp_protocol.rb', line 635 def text @text end |
#textDocument ⇒ Object
type: VersionedTextDocumentIdentifier # type: string
635 636 637 |
# File 'lib/lsp/lsp_protocol.rb', line 635 def textDocument @textDocument end |
Instance Method Details
#from_h!(value) ⇒ Object
642 643 644 645 646 647 |
# File 'lib/lsp/lsp_protocol.rb', line 642 def from_h!(value) value = {} if value.nil? self.textDocument = value['textDocument'] # Unknown type self.text = value['text'] self end |