class LanguageServer::Protocol::Interface::ClientCapabilities

Attributes

attributes[R]

Public Class Methods

new(workspace: nil, text_document: nil, notebook_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, notebook_document: nil, window: nil, general: nil, experimental: nil)
  @attributes = {}

  @attributes[:workspace] = workspace if workspace
  @attributes[:textDocument] = text_document if text_document
  @attributes[:notebookDocument] = notebook_document if notebook_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 [LSPAny]

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

General client capabilities.

@return [{ staleRequestSupport?: { cancel: boolean; retryOnContentModified: string[]; }; regularExpressions?: RegularExpressionsClientCapabilities; markdown?: any; positionEncodings?: string[]; }]

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

Capabilities specific to the notebook document support.

@return [NotebookDocumentClientCapabilities]

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

Text document specific client capabilities.

@return [TextDocumentClientCapabilities]

# File lib/language_server/protocol/interface/client_capabilities.rb, line 30
def text_document
  attributes.fetch(:textDocument)
end
to_hash() click to toggle source
# File lib/language_server/protocol/interface/client_capabilities.rb, line 68
def to_hash
  attributes
end
to_json(*args) click to toggle source
# File lib/language_server/protocol/interface/client_capabilities.rb, line 72
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 46
def window
  attributes.fetch(:window)
end
workspace() click to toggle source

Workspace specific client capabilities.

@return [{ applyEdit?: boolean; workspaceEdit?: WorkspaceEditClientCapabilities; didChangeConfiguration?: DidChangeConfigurationClientCapabilities; … 10 more …; diagnostics?: DiagnosticWorkspaceClientCapabilities; }]

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