Options
All
  • Public
  • Public/Protected
  • All
Menu

A code action represents a change that can be performed in code, e.g. to fix a problem or to refactor code.

A CodeAction must set either edit and/or a command. If both are supplied, the edit is applied first, then the command is executed.

Hierarchy

  • CodeAction

Index

Constructors

Properties

Constructors

constructor

Properties

Optional command

command: Command

A command this code action executes.

Optional diagnostics

diagnostics: Diagnostic[]

Diagnostics that this code action resolves.

Optional edit

A workspace edit this code action performs.

Optional kind

Kind of the code action.

Used to filter code actions.

title

title: string

A short, human-readable, title for this code action.