class LanguageServer::Protocol::Interface::CodeActionOptions
Attributes
attributes[R]
Public Class Methods
new(work_done_progress: nil, code_action_kinds: nil, resolve_provider: nil)
click to toggle source
# File lib/language_server/protocol/interface/code_action_options.rb, line 5 def initialize(work_done_progress: nil, code_action_kinds: nil, resolve_provider: nil) @attributes = {} @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes[:codeActionKinds] = code_action_kinds if code_action_kinds @attributes[:resolveProvider] = resolve_provider if resolve_provider @attributes.freeze end
Public Instance Methods
code_action_kinds()
click to toggle source
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.
@return [string
# File lib/language_server/protocol/interface/code_action_options.rb, line 27 def code_action_kinds attributes.fetch(:codeActionKinds) end
resolve_provider()
click to toggle source
The server provides support to resolve additional information for a code action.
@return [boolean]
# File lib/language_server/protocol/interface/code_action_options.rb, line 36 def resolve_provider attributes.fetch(:resolveProvider) end
to_hash()
click to toggle source
# File lib/language_server/protocol/interface/code_action_options.rb, line 42 def to_hash attributes end
to_json(*args)
click to toggle source
# File lib/language_server/protocol/interface/code_action_options.rb, line 46 def to_json(*args) to_hash.to_json(*args) end
work_done_progress()
click to toggle source
@return [boolean]
# File lib/language_server/protocol/interface/code_action_options.rb, line 16 def work_done_progress attributes.fetch(:workDoneProgress) end