Class: LSP::WorkspaceFoldersChangeEvent
- 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
-
#added ⇒ Object
type: WorkspaceFolder[] # type: WorkspaceFolder[].
-
#removed ⇒ Object
type: WorkspaceFolder[] # type: WorkspaceFolder[].
Instance Method Summary collapse
Methods inherited from LSPBase
Constructor Details
This class inherits a constructor from LSP::LSPBase
Instance Attribute Details
#added ⇒ Object
type: WorkspaceFolder[] # type: WorkspaceFolder[]
162 163 164 |
# File 'lib/lsp/lsp_protocol_workspacefolders.rb', line 162 def added @added end |
#removed ⇒ Object
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 |