CodeFixAction

external interface CodeFixAction : CodeAction(source)

Properties

Link copied to clipboard
abstract external var changes: ReadonlyArray<FileTextChanges>

Text changes to apply to each file as part of the code action

Link copied to clipboard
abstract external var commands: ReadonlyArray<CodeActionCommand>?

If the user accepts the code fix, the editor should send the action back in a applyAction request. This allows the language service to have side effects (e.g. installing dependencies) upon a code fix.

Link copied to clipboard
abstract external var description: String

Description of the code action to display in the UI of the editor

Link copied to clipboard
abstract external var fixAllDescription: String?
Link copied to clipboard
abstract external var fixId: Any?

If present, one may call 'getCombinedCodeFix' with this fixId. This may be omitted to indicate that the code fix can't be applied in a group.

Link copied to clipboard
abstract external var fixName: String

Short name to identify the fix, for use by telemetry.