Class: LSP::SemanticTokensEditsParams

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

Overview

export interface SemanticTokensEditsParams extends WorkDoneProgressParams, PartialResultParams

/**
 * The text document.
 */
textDocument: TextDocumentIdentifier;
/**
 * The previous result id.
 */
previousResultId: string;

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

#previousResultIdObject

type: TextDocumentIdentifier # type: string



307
308
309
# File 'lib/lsp/lsp_protocol_sematictokens.proposed.rb', line 307

def previousResultId
  @previousResultId
end

#textDocumentObject

type: TextDocumentIdentifier # type: string



307
308
309
# File 'lib/lsp/lsp_protocol_sematictokens.proposed.rb', line 307

def textDocument
  @textDocument
end

Instance Method Details

#from_h!(value) ⇒ Object



309
310
311
312
313
314
# File 'lib/lsp/lsp_protocol_sematictokens.proposed.rb', line 309

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