Class: LSP::RenameFile
Overview
export interface RenameFile extends ResourceOperation
/**
* A rename
*/
kind: 'rename';
/**
* The old (existing) location.
*/
oldUri: DocumentUri;
/**
* The new location.
*/
newUri: DocumentUri;
/**
* Rename options.
*/
options?: RenameFileOptions;
Instance Attribute Summary collapse
-
#kind ⇒ Object
type: string with value ‘rename’ # type: DocumentUri # type: DocumentUri # type: RenameFileOptions.
-
#newUri ⇒ Object
type: string with value ‘rename’ # type: DocumentUri # type: DocumentUri # type: RenameFileOptions.
-
#oldUri ⇒ Object
type: string with value ‘rename’ # type: DocumentUri # type: DocumentUri # type: RenameFileOptions.
-
#options ⇒ Object
type: string with value ‘rename’ # type: DocumentUri # type: DocumentUri # type: RenameFileOptions.
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ RenameFile
constructor
A new instance of RenameFile.
Methods inherited from LSPBase
Constructor Details
#initialize(initial_hash = nil) ⇒ RenameFile
Returns a new instance of RenameFile.
518 519 520 521 |
# File 'lib/lsp/lsp_types.rb', line 518 def initialize(initial_hash = nil) super @optional_method_names = %i[options] end |
Instance Attribute Details
#kind ⇒ Object
type: string with value ‘rename’ # type: DocumentUri # type: DocumentUri # type: RenameFileOptions
516 517 518 |
# File 'lib/lsp/lsp_types.rb', line 516 def kind @kind end |
#newUri ⇒ Object
type: string with value ‘rename’ # type: DocumentUri # type: DocumentUri # type: RenameFileOptions
516 517 518 |
# File 'lib/lsp/lsp_types.rb', line 516 def newUri @newUri end |
#oldUri ⇒ Object
type: string with value ‘rename’ # type: DocumentUri # type: DocumentUri # type: RenameFileOptions
516 517 518 |
# File 'lib/lsp/lsp_types.rb', line 516 def oldUri @oldUri end |
#options ⇒ Object
type: string with value ‘rename’ # type: DocumentUri # type: DocumentUri # type: RenameFileOptions
516 517 518 |
# File 'lib/lsp/lsp_types.rb', line 516 def @options end |
Instance Method Details
#from_h!(value) ⇒ Object
523 524 525 526 527 528 529 530 |
# File 'lib/lsp/lsp_types.rb', line 523 def from_h!(value) value = {} if value.nil? self.kind = value['kind'] # Unknown type self.oldUri = value['oldUri'] # Unknown type self.newUri = value['newUri'] # Unknown type self. = RenameFileOptions.new(value['options']) unless value['options'].nil? self end |