Class: LSP::WorkspaceFolder
- Defined in:
- lib/lsp/lsp_protocol_workspacefolders.rb
Overview
export interface WorkspaceFolder
/**
* The associated URI for this workspace folder.
*/
uri: string;
/**
* The name of the workspace folder. Used to refer to this
* workspace folder in the user interface.
*/
name: string;
Instance Attribute Summary collapse
-
#name ⇒ Object
type: string # type: string.
-
#uri ⇒ Object
type: string # type: string.
Instance Method Summary collapse
Methods inherited from LSPBase
Constructor Details
This class inherits a constructor from LSP::LSPBase
Instance Attribute Details
#name ⇒ Object
type: string # type: string
125 126 127 |
# File 'lib/lsp/lsp_protocol_workspacefolders.rb', line 125 def name @name end |
#uri ⇒ Object
type: string # type: string
125 126 127 |
# File 'lib/lsp/lsp_protocol_workspacefolders.rb', line 125 def uri @uri end |
Instance Method Details
#from_h!(value) ⇒ Object
127 128 129 130 131 132 |
# File 'lib/lsp/lsp_protocol_workspacefolders.rb', line 127 def from_h!(value) value = {} if value.nil? self.uri = value['uri'] self.name = value['name'] self end |