Class: LSP::WorkspaceFoldersChangeEvent

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

Overview

export interface WorkspaceFoldersChangeEvent

/**
 * The array of added workspace folders
 */
added: WorkspaceFolder[];
/**
 * The array of the removed workspace folders
 */
removed: WorkspaceFolder[];

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LSPBase

#initialize, #to_h, #to_json

Constructor Details

This class inherits a constructor from LSP::LSPBase

Instance Attribute Details

#addedObject

type: WorkspaceFolder[] # type: WorkspaceFolder[]



162
163
164
# File 'lib/lsp/lsp_protocol_workspacefolders.rb', line 162

def added
  @added
end

#removedObject

type: WorkspaceFolder[] # type: WorkspaceFolder[]



162
163
164
# File 'lib/lsp/lsp_protocol_workspacefolders.rb', line 162

def removed
  @removed
end

Instance Method Details

#from_h!(value) ⇒ Object



164
165
166
167
168
169
# File 'lib/lsp/lsp_protocol_workspacefolders.rb', line 164

def from_h!(value)
  value = {} if value.nil?
  self.added = to_typed_aray(value['added'], WorkspaceFolder)
  self.removed = to_typed_aray(value['removed'], WorkspaceFolder)
  self
end