anchor.diff:      _nameElement = _triggerOnReturn("#fileName");
     }
   
  -  void _invoke([List<ws.Folder> folders]) {
  -    if (folders != null && folders.isNotEmpty) {
  -      folder = folders.first;
  +  void _invoke([List<ws.Resource> resources]) {
  +    folder = spark._getFolder();
  +    if (folder != null) {
         _nameElement.value = '';
         _show();
  -    } else {
  -      // create new file in sync fs on chrome os
  -      if (spark.platformInfo.isCros && spark.workspace.syncFsIsAvailable) {
  -        _nameElement.value = '';
  -        _show();
  -      } else { // use file save as for local fs
  -        spark.newFileAs();
  -      }
       }
     }
   
  
positive.code:   }
  
    /**
     * Returns true if `object` is a list of File.
     */
    bool _isFileList(Object object) {
  
negative.code:             spark.selectInEditor(file, forceOpen: true, replaceCurrent: true);
            });
          });
        }
      }
    }
  
    String get category => 'folder';
  
    bool appliesTo(Object object) => _isSingleResource(object) && !_isTopLevelFile(object);
  }
  
  class FileNewAsAction extends SparkAction {
  