class LanguageServer::Protocol::Interface::ClientCapabilities

Attributes

attributes[R]

Public Class Methods

new(workspace: nil, text_document: nil, window: nil, general: nil, experimental: nil) click to toggle source
# File lib/language_server/protocol/interface/client_capabilities.rb, line 5
def initialize(workspace: nil, text_document: nil, window: nil, general: nil, experimental: nil)
  @attributes = {}

  @attributes[:workspace] = workspace if workspace
  @attributes[:textDocument] = text_document if text_document
  @attributes[:window] = window if window
  @attributes[:general] = general if general
  @attributes[:experimental] = experimental if experimental

  @attributes.freeze
end

Public Instance Methods

experimental() click to toggle source

Experimental client capabilities.

@return [any]

# File lib/language_server/protocol/interface/client_capabilities.rb, line 53
def experimental
  attributes.fetch(:experimental)
end
general() click to toggle source

General client capabilities.

@return [{ regularExpressions?: RegularExpressionsClientCapabilities; markdown?: MarkdownClientCapabilities; }]

# File lib/language_server/protocol/interface/client_capabilities.rb, line 45
def general
  attributes.fetch(:general)
end
text_document() click to toggle source

Text document specific client capabilities.

@return [TextDocumentClientCapabilities]

# File lib/language_server/protocol/interface/client_capabilities.rb, line 29
def text_document
  attributes.fetch(:textDocument)
end
to_hash() click to toggle source
# File lib/language_server/protocol/interface/client_capabilities.rb, line 59
def to_hash
  attributes
end
to_json(*args) click to toggle source
# File lib/language_server/protocol/interface/client_capabilities.rb, line 63
def to_json(*args)
  to_hash.to_json(*args)
end
window() click to toggle source

Window specific client capabilities.

@return [{ workDoneProgress?: boolean; showMessage?: ShowMessageRequestClientCapabilities; showDocument?: ShowDocumentClientCapabilities; }]

# File lib/language_server/protocol/interface/client_capabilities.rb, line 37
def window
  attributes.fetch(:window)
end
workspace() click to toggle source

Workspace specific client capabilities.

@return [{ applyEdit?: boolean; workspaceEdit?: WorkspaceEditClientCapabilities; didChangeConfiguration?: DidChangeConfigurationClientCapabilities; … 7 more …; fileOperations?: { …; }; }]

# File lib/language_server/protocol/interface/client_capabilities.rb, line 21
def workspace
  attributes.fetch(:workspace)
end