anchor.diff:      super(spark, id, name);
   
     void _invoke([context]) {
  +    if (!_canRunAction()) {
  +      return;
  +    }
       ws.Resource resource;
   
       if (context == null) {
  
positive.code:   bool _appliesTo(ws.Resource resource);
  
    Job _createJob(ws.Container container);
  }
  
  abstract class PubAction extends PackageManagementAction {
    PubAction(Spark spark, String id, String name) : super(spark, id, name);
  
    bool _appliesTo(ws.Resource resource) =>
        spark.pubManager.properties.isPackageResource(resource);
  
negative.code:             });
  
              // Run Pub if the new project has a pubspec file.
              if (spark.pubManager.properties.isFolderWithPackages(project) && !PlatformInfo.isWin) {
                // There is issue with workspace sending duplicate events.
                // TODO(grv): revisit workspace events.
                Timer.run(() {
  