Table of Contents

Class CodeActionInfo<T>

Namespace
NMF.AnyText
Assembly
NMF.AnyText.Core.dll

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

Action<T, ExecuteCommandArguments>

WorkspaceEdit

Defines the how the WorkspaceEdit Object of this CodeAction is created

public Func<T, ExecuteCommandArguments, WorkspaceEdit> WorkspaceEdit { get; init; }

Property Value

Func<T, ExecuteCommandArguments, WorkspaceEdit>

Methods

CreateWorkspaceEdit(ExecuteCommandArguments)

Creates the workspace edit calculated for the given arguments

public override WorkspaceEdit CreateWorkspaceEdit(ExecuteCommandArguments arguments)

Parameters

arguments ExecuteCommandArguments

the 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 ExecuteCommandArguments

A structure containing the rule application, context and position