Class: LSP::DidOpenTextDocumentParams

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

Overview

export interface DidOpenTextDocumentParams

/**
 * The document that was opened.
 */
textDocument: TextDocumentItem;

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

#textDocumentObject

type: TextDocumentItem



548
549
550
# File 'lib/lsp/lsp_protocol.rb', line 548

def textDocument
  @textDocument
end

Instance Method Details

#from_h!(value) ⇒ Object



550
551
552
553
554
# File 'lib/lsp/lsp_protocol.rb', line 550

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