From ee57e15889e823f01f18638c6c79fa7c3c6c8d4a Mon Sep 17 00:00:00 2001 From: nightwing Date: Mon, 28 Mar 2016 03:47:52 +0400 Subject: [PATCH] fix tests --- node_modules/ace_tree/lib/ace_tree/edit.js | 1 + plugins/c9.fs/fs.cache.xml.js | 13 ++++++------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/node_modules/ace_tree/lib/ace_tree/edit.js b/node_modules/ace_tree/lib/ace_tree/edit.js index 9403bf76..09bb8dfb 100644 --- a/node_modules/ace_tree/lib/ace_tree/edit.js +++ b/node_modules/ace_tree/lib/ace_tree/edit.js @@ -258,6 +258,7 @@ var EditableTree = function(tree) { var ace = this.ace; this.ace = null; + ace.renderer.freeze(); setTimeout(function() { // doing this after timeout to allow rename event focus something else var wasFocused = ace.isFocused(); diff --git a/plugins/c9.fs/fs.cache.xml.js b/plugins/c9.fs/fs.cache.xml.js index 0b64994c..50e1e406 100644 --- a/plugins/c9.fs/fs.cache.xml.js +++ b/plugins/c9.fs/fs.cache.xml.js @@ -113,17 +113,16 @@ define(function(require, exports, module) { ondisk[name] = 1; + if (orphans[path]) { + if (existing[name]) + delete orphans[path]; + orphanAppand.push(path); + } + if (existing[name]) updateNodeStat(path, stat, existing[name]); else toCreate.push(stat); - - if (orphans[path]) { - if (existing[name]) - delete orphans[path]; - else - orphanAppand.push(path); - } }); Object.keys(existing).forEach(function(name) {