Class: LSP::RenameRegistrationOptions

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

Overview

export interface RenameRegistrationOptions extends TextDocumentRegistrationOptions, RenameOptions { }

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ RenameRegistrationOptions



2560
2561
2562
2563
# File 'lib/lsp/lsp_protocol.rb', line 2560

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

Instance Attribute Details

#documentSelectorObject

type: DocumentSelector | null # type: boolean # type: boolean



2558
2559
2560
# File 'lib/lsp/lsp_protocol.rb', line 2558

def documentSelector
  @documentSelector
end

#prepareProviderObject

type: DocumentSelector | null # type: boolean # type: boolean



2558
2559
2560
# File 'lib/lsp/lsp_protocol.rb', line 2558

def prepareProvider
  @prepareProvider
end

#workDoneProgressObject

type: DocumentSelector | null # type: boolean # type: boolean



2558
2559
2560
# File 'lib/lsp/lsp_protocol.rb', line 2558

def workDoneProgress
  @workDoneProgress
end

Instance Method Details

#from_h!(value) ⇒ Object



2565
2566
2567
2568
2569
2570
2571
# File 'lib/lsp/lsp_protocol.rb', line 2565

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