class LanguageServer::Protocol::Interface::SemanticTokensWorkspaceClientCapabilities

Attributes

attributes[R]

Public Class Methods

new(refresh_support: nil) click to toggle source
# File lib/language_server/protocol/interface/semantic_tokens_workspace_client_capabilities.rb, line 5
def initialize(refresh_support: nil)
  @attributes = {}

  @attributes[:refreshSupport] = refresh_support if refresh_support

  @attributes.freeze
end

Public Instance Methods

refresh_support() click to toggle source

Whether the client implementation supports a refresh request sent from the server to the client.

Note that this event is global and will force the client to refresh all semantic tokens currently shown. It should be used with absolute care and is useful for situation where a server for example detect a project wide change that requires such a calculation.

@return [boolean]

# File lib/language_server/protocol/interface/semantic_tokens_workspace_client_capabilities.rb, line 23
def refresh_support
  attributes.fetch(:refreshSupport)
end
to_hash() click to toggle source
# File lib/language_server/protocol/interface/semantic_tokens_workspace_client_capabilities.rb, line 29
def to_hash
  attributes
end
to_json(*args) click to toggle source
# File lib/language_server/protocol/interface/semantic_tokens_workspace_client_capabilities.rb, line 33
def to_json(*args)
  to_hash.to_json(*args)
end