diff --git a/oide/apps/codeeditor/static/filetree.controller.js b/oide/apps/codeeditor/static/filetree.controller.js
index <HASH>..<HASH> 100644
--- a/oide/apps/codeeditor/static/filetree.controller.js
+++ b/oide/apps/codeeditor/static/filetree.controller.js
@@ -141,6 +141,13 @@ angular.module('oide.editor')
     self.clipboard = [];
     $rootScope.$emit('pastedFiles', newDirPath);
   };
+
+  self.fileRenamed = function(data, status, headers, config, node) {
+    $rootScope.$emit('fileRenamed', node.filepath, data.result);
+    self.updateFiletree();
+    $log.debug('POST: ', data.result);
+  };
+
   self.renameFile = function () {
     var renameModalInstance = $modal.open({
       templateUrl: '/static/editor/templates/rename-modal.html',
fix rename bug in filetree