Class: LSP::RenameOptions

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

Overview

export interface RenameOptions extends WorkDoneProgressOptions

/**
 * Renames should be checked and tested before being executed.
 *
 * @since version 3.12.0
 */
prepareProvider?: boolean;

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ RenameOptions

Returns a new instance of RenameOptions.



2542
2543
2544
2545
# File 'lib/lsp/lsp_protocol.rb', line 2542

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

Instance Attribute Details

#prepareProviderObject

type: boolean # type: boolean



2540
2541
2542
# File 'lib/lsp/lsp_protocol.rb', line 2540

def prepareProvider
  @prepareProvider
end

#workDoneProgressObject

type: boolean # type: boolean



2540
2541
2542
# File 'lib/lsp/lsp_protocol.rb', line 2540

def workDoneProgress
  @workDoneProgress
end

Instance Method Details

#from_h!(value) ⇒ Object



2547
2548
2549
2550
2551
2552
# File 'lib/lsp/lsp_protocol.rb', line 2547

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