class RubyLsp::Requests::CodeActionResolve

The code action resolve request is used to to resolve the edit field for a given code action, if it is not already provided in the textDocument/codeAction response. We can use it for scenarios that require more computation such as refactoring.

Example: Extract to variable

# Before:
1 + 1 # Select the text and use Refactor: Extract Variable

# After:
new_variable = 1 + 1
new_variable

Constants

>NEW_VARIABLE_NAME

Public Class Methods

new(document, code_action)

Calls superclass method

Public Instance Methods

perform()