anchor.diff:              spark.selectInEditor(file, forceOpen: true, replaceCurrent: true);
             });
           });
  -      } else {
  -        spark.workspace.createFileSyncFs(name).then((file) {
  -          if (file != null) {
  -            Timer.run(() {
  -              spark.selectInEditor(file, forceOpen: true, replaceCurrent: true);
  -            });
  -          }
  -        });
         }
       }
     }
   
     String get category => 'folder';
   
  -  bool appliesTo(Object object) => _isSingleFolder(object);
  +  bool appliesTo(Object object) => _isSingleResource(object) && !_isTopLevelFile(object);
   }
   
   class FileNewAsAction extends SparkAction {
  
positive.code:     _nameElement = _triggerOnReturn("#fileName");
    }
  
    void _invoke([List<ws.Folder> folders]) {
      if (folders != null && folders.isNotEmpty) {
        folder = folders.first;
        _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();
        }
      }
    }
  
  
negative.code: 
    List<ws.Resource> _getSelection() => _filesController.getSelection();
  
    ws.Folder _getFolder([List<ws.Resource> resources]) {
      if (resources != null && resources.isNotEmpty) {
        if (resources.first.isFile) {
          return resources.first.parent;
        } else {
          return resources.first;
        }
  
      } else {
        if (focusManager.currentResource != null) {
         ws.Resource resource = focusManager.currentResource;
         if (resource.isFile) {
           if (resource.project != null) {
             return resource.parent;
           }
         } else {
           return resource;
         }
        }
      }
      return null;
    }
  
    void _closeOpenEditor(ws.Resource resource) {
      if (resource is ws.File &&  editorManager.isFileOpened(resource)) {
        editorArea.closeFile(resource);
  