class LanguageServer::Protocol::Interface::InlineValueWorkspaceClientCapabilities

Client workspace capabilities specific to inline values.

Attributes

attributes[R]

Public Class Methods

new(refresh_support: nil) click to toggle source
# File lib/language_server/protocol/interface/inline_value_workspace_client_capabilities.rb, line 8
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 inline values 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/inline_value_workspace_client_capabilities.rb, line 26
def refresh_support
  attributes.fetch(:refreshSupport)
end
to_hash() click to toggle source
# File lib/language_server/protocol/interface/inline_value_workspace_client_capabilities.rb, line 32
def to_hash
  attributes
end
to_json(*args) click to toggle source
# File lib/language_server/protocol/interface/inline_value_workspace_client_capabilities.rb, line 36
def to_json(*args)
  to_hash.to_json(*args)
end