Class CodeAction


  • public class CodeAction
    extends java.lang.Object
    Encapsulates a description and set of changes to perform that will complete a complex editing operation.
    • 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.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • description

        public java.lang.String description
    • 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 description
        changes - the changes to apply
        data - a token set by TSLanguageServices to support #applyAction