Class: LSP::SemanticTokensServerCapabilities

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

Overview

export interface SemanticTokensServerCapabilities

semanticTokensProvider: SemanticTokensOptions | SemanticTokensRegistrationOptions;

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

#semanticTokensProviderObject

type: SemanticTokensOptions | SemanticTokensRegistrationOptions



271
272
273
# File 'lib/lsp/lsp_protocol_sematictokens.proposed.rb', line 271

def semanticTokensProvider
  @semanticTokensProvider
end

Instance Method Details

#from_h!(value) ⇒ Object



273
274
275
276
277
# File 'lib/lsp/lsp_protocol_sematictokens.proposed.rb', line 273

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