Class: LSP::CodeActionOptions
- Defined in:
- lib/lsp/lsp_protocol.rb
Overview
export interface CodeActionOptions extends WorkDoneProgressOptions
/**
* CodeActionKinds that this server may return.
*
* The list of kinds may be generic, such as `CodeActionKind.Refactor`, or the server
* may list out every specific kind they provide.
*/
codeActionKinds?: CodeActionKind[];
Instance Attribute Summary collapse
-
#codeActionKinds ⇒ Object
type: CodeActionKind[] # type: boolean.
-
#workDoneProgress ⇒ Object
type: CodeActionKind[] # type: boolean.
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ CodeActionOptions
constructor
A new instance of CodeActionOptions.
Methods inherited from LSPBase
Constructor Details
#initialize(initial_hash = nil) ⇒ CodeActionOptions
Returns a new instance of CodeActionOptions.
1882 1883 1884 1885 |
# File 'lib/lsp/lsp_protocol.rb', line 1882 def initialize(initial_hash = nil) super @optional_method_names = %i[codeActionKinds workDoneProgress] end |
Instance Attribute Details
#codeActionKinds ⇒ Object
type: CodeActionKind[] # type: boolean
1880 1881 1882 |
# File 'lib/lsp/lsp_protocol.rb', line 1880 def codeActionKinds @codeActionKinds end |
#workDoneProgress ⇒ Object
type: CodeActionKind[] # type: boolean
1880 1881 1882 |
# File 'lib/lsp/lsp_protocol.rb', line 1880 def workDoneProgress @workDoneProgress end |
Instance Method Details
#from_h!(value) ⇒ Object
1887 1888 1889 1890 1891 1892 |
# File 'lib/lsp/lsp_protocol.rb', line 1887 def from_h!(value) value = {} if value.nil? self.codeActionKinds = value['codeActionKinds'].map { |val| val } unless value['codeActionKinds'].nil? # Unknown array type self.workDoneProgress = value['workDoneProgress'] # Unknown type self end |