From 661166ea43801f89393fca059d3a2a8ebd43395d Mon Sep 17 00:00:00 2001 From: nightwing Date: Fri, 2 Jun 2017 12:31:21 +0400 Subject: [PATCH] fix salesforce newfile plugin --- plugins/c9.fs/fs.cache.xml.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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;