Class: LSP::ConfigurationClientCapabilities

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

Overview

export interface ConfigurationClientCapabilities {

/**
 * The workspace client capabilities
 */
workspace?: {
    /**
    * The client supports `workspace/configuration` requests.
    */
    configuration?: boolean;
};

}

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ ConfigurationClientCapabilities

/**

    * The client supports `workspace/configuration` requests.
    */
    configuration?: boolean;
}


29
30
31
32
# File 'lib/lsp/lsp_protocol_configuration.rb', line 29

def initialize(initial_hash = nil)
  super
  @optional_method_names = %i[workspace]
end

Instance Attribute Details

#workspaceObject

type: {



21
22
23
# File 'lib/lsp/lsp_protocol_configuration.rb', line 21

def workspace
  @workspace
end

Instance Method Details

#from_h!(value) ⇒ Object



34
35
36
37
38
# File 'lib/lsp/lsp_protocol_configuration.rb', line 34

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