diff --git a/plugins/c9.fs/fs.cache.xml.js b/plugins/c9.fs/fs.cache.xml.js index 13c2ccd3..60f0480a 100644 --- a/plugins/c9.fs/fs.cache.xml.js +++ b/plugins/c9.fs/fs.cache.xml.js @@ -138,8 +138,12 @@ define(function(require, exports, module) { toRemove.push(name); }); - if (!toCreate.length && !toRemove.length && !orphanAppand.length) - return; + if (!toCreate.length && !toRemove.length && !orphanAppand.length) { + // emit readdir event for empty folders, since other plugins may use that + // to display create new file buttons + if (node.children && node.children.length) + return; + } var wasOpen = startUpdate(node); node.children = null;