Class: LSP::WillSaveTextDocumentParams

Inherits:
LSPBase
  • Object
show all
Defined in:
lib/lsp/lsp_protocol.rb

Overview

export interface WillSaveTextDocumentParams

/**
 * The document that will be saved.
 */
textDocument: TextDocumentIdentifier;
/**
 * The 'TextDocumentSaveReason'.
 */
reason: TextDocumentSaveReason;

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LSPBase

#initialize, #to_h, #to_json

Constructor Details

This class inherits a constructor from LSP::LSPBase

Instance Attribute Details

#reasonObject

type: TextDocumentIdentifier # type: TextDocumentSaveReason



679
680
681
# File 'lib/lsp/lsp_protocol.rb', line 679

def reason
  @reason
end

#textDocumentObject

type: TextDocumentIdentifier # type: TextDocumentSaveReason



679
680
681
# File 'lib/lsp/lsp_protocol.rb', line 679

def textDocument
  @textDocument
end

Instance Method Details

#from_h!(value) ⇒ Object



681
682
683
684
685
686
# File 'lib/lsp/lsp_protocol.rb', line 681

def from_h!(value)
  value = {} if value.nil?
  self.textDocument = value['textDocument'] # Unknown type
  self.reason = value['reason'] # Unknown type
  self
end