Class: LSP::WorkspaceFoldersClientCapabilities

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

Overview

export interface WorkspaceFoldersClientCapabilities {

/**
 * The workspace client capabilities
 */
workspace?: {
    /**
     * The client has support for workspace folders
     */
    workspaceFolders?: boolean;
};

}

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ WorkspaceFoldersClientCapabilities

/**

     * The client has support for workspace folders
     */
    workspaceFolders?: boolean;
}


45
46
47
48
# File 'lib/lsp/lsp_protocol_workspacefolders.rb', line 45

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

Instance Attribute Details

#workspaceObject

type: {



37
38
39
# File 'lib/lsp/lsp_protocol_workspacefolders.rb', line 37

def workspace
  @workspace
end

Instance Method Details

#from_h!(value) ⇒ Object



50
51
52
53
54
# File 'lib/lsp/lsp_protocol_workspacefolders.rb', line 50

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