Class: LSP::CodeActionRegistrationOptions

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

Overview

export interface CodeActionRegistrationOptions extends TextDocumentRegistrationOptions, CodeActionOptions { }

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ CodeActionRegistrationOptions

Returns a new instance of CodeActionRegistrationOptions.



1900
1901
1902
1903
# File 'lib/lsp/lsp_protocol.rb', line 1900

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

Instance Attribute Details

#codeActionKindsObject

type: DocumentSelector | null # type: CodeActionKind[] # type: boolean



1898
1899
1900
# File 'lib/lsp/lsp_protocol.rb', line 1898

def codeActionKinds
  @codeActionKinds
end

#documentSelectorObject

type: DocumentSelector | null # type: CodeActionKind[] # type: boolean



1898
1899
1900
# File 'lib/lsp/lsp_protocol.rb', line 1898

def documentSelector
  @documentSelector
end

#workDoneProgressObject

type: DocumentSelector | null # type: CodeActionKind[] # type: boolean



1898
1899
1900
# File 'lib/lsp/lsp_protocol.rb', line 1898

def workDoneProgress
  @workDoneProgress
end

Instance Method Details

#from_h!(value) ⇒ Object



1905
1906
1907
1908
1909
1910
1911
# File 'lib/lsp/lsp_protocol.rb', line 1905

def from_h!(value)
  value = {} if value.nil?
  self.documentSelector = value['documentSelector'] # Unknown type
  self.codeActionKinds = value['codeActionKinds'].map { |val| val } unless value['codeActionKinds'].nil? # Unknown array type
  self.workDoneProgress = value['workDoneProgress'] # Unknown type
  self
end