Class CodeActionInfo<T>
Represents the information about a code action.
public class CodeActionInfo<T> : CodeActionInfo
Type Parameters
T
The semantic type of elements for which this action is executed
- Inheritance
-
CodeActionInfo<T>
- Inherited Members
Properties
Action
The actual action that is executed
public Action<T, ExecuteCommandArguments> Action { get; init; }
Property Value
WorkspaceEdit
Defines the how the WorkspaceEdit Object of this CodeAction is created
public Func<T, ExecuteCommandArguments, WorkspaceEdit> WorkspaceEdit { get; init; }
Property Value
Methods
CreateWorkspaceEdit(ExecuteCommandArguments)
Creates the workspace edit calculated for the given arguments
public override WorkspaceEdit CreateWorkspaceEdit(ExecuteCommandArguments arguments)
Parameters
arguments
ExecuteCommandArgumentsthe arguments for which to calculate the workspace edit
Returns
- WorkspaceEdit
The workspace edit
Invoke(ExecuteCommandArguments)
Invokes the action with the given arguments
public override void Invoke(ExecuteCommandArguments arguments)
Parameters
arguments
ExecuteCommandArgumentsA structure containing the rule application, context and position