Class CodeAction
- java.lang.Object
-
- ca.cgjennings.apps.arkham.plugins.typescript.CodeAction
-
public class CodeAction extends java.lang.Object
Encapsulates a description and set of changes to perform that will complete a complex editing operation.
-
-
Field Summary
Fields Modifier and Type Field Description java.util.List<FileTextChanges>
changes
java.lang.String
description
-
Constructor Summary
Constructors Constructor Description CodeAction(java.lang.String description, java.util.List<FileTextChanges> changes, java.lang.Object data)
Creates a code action with the specified description and changes, as well as the original TS language service CodeAction object.
-
-
-
Field Detail
-
description
public java.lang.String description
-
changes
public java.util.List<FileTextChanges> changes
-
-
Constructor Detail
-
CodeAction
public CodeAction(java.lang.String description, java.util.List<FileTextChanges> changes, java.lang.Object data)
Creates a code action with the specified description and changes, as well as the original TS language service CodeAction object. If the changes are applied, the language service should be notified by calling#applyAction()
.- Parameters:
description
- the text descriptionchanges
- the changes to applydata
- a token set byTSLanguageServices
to support#applyAction
-
-