CodeAction Class

Definition

A class representing a change that can be performed in code. A CodeAction must either set Edit or Command. If both are supplied, the edit will be applied first, then the command will be executed.

See the Language Server Protocol specification for additional information.

public ref class CodeAction
[System.Runtime.Serialization.DataContract]
public class CodeAction
[<System.Runtime.Serialization.DataContract>]
type CodeAction = class
Public Class CodeAction
Inheritance
CodeAction
Attributes

Constructors

CodeAction()

Properties

Command

Gets or sets the command that this code action executes.

Data

Gets or sets the data that will be resend to the server if the code action is selected to be resolved.

Diagnostics

Gets or sets the diagnostics that this code action resolves.

Edit

Gets or sets the workspace edit that this code action performs.

Kind

Gets or sets the kind of code action this instance represents.

Title

Gets or sets the human readable title for this code action.

Applies to