Class: LSP::CodeActionRegistrationOptions
- Defined in:
- lib/lsp/lsp_protocol.rb
Overview
export interface CodeActionRegistrationOptions extends TextDocumentRegistrationOptions, CodeActionOptions { }
Instance Attribute Summary collapse
-
#codeActionKinds ⇒ Object
type: DocumentSelector | null # type: CodeActionKind[] # type: boolean.
-
#documentSelector ⇒ Object
type: DocumentSelector | null # type: CodeActionKind[] # type: boolean.
-
#workDoneProgress ⇒ Object
type: DocumentSelector | null # type: CodeActionKind[] # type: boolean.
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ CodeActionRegistrationOptions
constructor
A new instance of CodeActionRegistrationOptions.
Methods inherited from LSPBase
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
#codeActionKinds ⇒ Object
type: DocumentSelector | null # type: CodeActionKind[] # type: boolean
1898 1899 1900 |
# File 'lib/lsp/lsp_protocol.rb', line 1898 def codeActionKinds @codeActionKinds end |
#documentSelector ⇒ Object
type: DocumentSelector | null # type: CodeActionKind[] # type: boolean
1898 1899 1900 |
# File 'lib/lsp/lsp_protocol.rb', line 1898 def documentSelector @documentSelector end |
#workDoneProgress ⇒ Object
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 |