From 32db4ea7e5018d99e71a08fdc8897e09c78547dd Mon Sep 17 00:00:00 2001 From: nightwing Date: Wed, 15 Jun 2016 01:07:11 +0400 Subject: [PATCH] make refresh more robust to errors --- plugins/c9.fs/fs.cache.xml.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/c9.fs/fs.cache.xml.js b/plugins/c9.fs/fs.cache.xml.js index a3d07777..73523999 100644 --- a/plugins/c9.fs/fs.cache.xml.js +++ b/plugins/c9.fs/fs.cache.xml.js @@ -35,6 +35,10 @@ define(function(require, exports, module) { cb && cb(err, files); }); }; + model.shouldLoadChildren = function(node, ch) { + return node.status == "pending" + || (node.path && node.isFolder && !ch); + }; model.getClassName = function(node) { var cl = node.className || ""; if (node.link)