From c1c4cd07bb1ef200d29a3c2d71aecc73c5d85d93 Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Wed, 23 Sep 2015 14:40:21 -0700 Subject: [PATCH 001/430] Enable Bash REPL. Add Ctrl-C to abort commands --- configs/client-default.js | 2 +- package.json | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/configs/client-default.js b/configs/client-default.js index 5e87fe8b..a949f122 100644 --- a/configs/client-default.js +++ b/configs/client-default.js @@ -382,7 +382,7 @@ module.exports = function(options) { "plugins/c9.ide.immediate/evaluator", "plugins/c9.ide.immediate/evaluators/browserjs", "plugins/c9.ide.immediate/evaluators/debugnode", - // "plugins/c9.ide.immediate/evaluators/bash", + "plugins/c9.ide.immediate/evaluators/bash", "plugins/c9.ide.run.debug/variables", "plugins/c9.ide.run.debug/watches", "plugins/c9.ide.run.debug/liveinspect", diff --git a/package.json b/package.json index d156b3cb..833ebd84 100644 --- a/package.json +++ b/package.json @@ -88,7 +88,7 @@ "c9.ide.format": "#b0bb91a623", "c9.ide.help.support": "#e95f98f87c", "c9.ide.imgeditor": "#66a9733dc1", - "c9.ide.immediate": "#18c23aa730", + "c9.ide.immediate": "#2736f8baaa", "c9.ide.installer": "#0fde9f0067", "c9.ide.mount": "#da6ad73c5b", "c9.ide.navigate": "#c191d9b92f", @@ -108,6 +108,8 @@ "c9.ide.save": "#e00549cb0f", "c9.ide.scm": "#0bccfb982b", "c9.ide.terminal.monitor": "#b76f1c9f24", + "c9.ide.test": "#d312a01ac6", + "c9.ide.test.mocha": "#79ff886c04", "c9.ide.theme.flat": "#2de8414db7", "c9.ide.threewaymerge": "#229382aa0b", "c9.ide.undo": "#b028bcb4d5", From d8ec9e51dc3bacdc0a70cc5a2f60f62d84a28c56 Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Wed, 23 Sep 2015 15:09:39 -0700 Subject: [PATCH 002/430] Add Abort to Immediate Pane --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 833ebd84..882fb55c 100644 --- a/package.json +++ b/package.json @@ -88,7 +88,7 @@ "c9.ide.format": "#b0bb91a623", "c9.ide.help.support": "#e95f98f87c", "c9.ide.imgeditor": "#66a9733dc1", - "c9.ide.immediate": "#2736f8baaa", + "c9.ide.immediate": "#4b0057aa7a", "c9.ide.installer": "#0fde9f0067", "c9.ide.mount": "#da6ad73c5b", "c9.ide.navigate": "#c191d9b92f", From 7b3581e7e483cf4e6e8674c28ebde7c62d8c178b Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Wed, 23 Sep 2015 15:54:04 -0700 Subject: [PATCH 003/430] Tweak abort() in bash evaluator. Make immediate toolbar extensible by evaluators --- package.json | 4 +-- plugins/c9.core/ext.js | 57 ++++++++++++++++-------------- plugins/c9.ide.ui/lib/menu/menu.js | 4 +-- 3 files changed, 34 insertions(+), 31 deletions(-) diff --git a/package.json b/package.json index 882fb55c..a4730c92 100644 --- a/package.json +++ b/package.json @@ -71,7 +71,7 @@ "c9.ide.find": "#35379124ca", "c9.ide.find.infiles": "#c132ad243c", "c9.ide.find.replace": "#44772dd796", - "c9.ide.run.debug": "#e38e16e120", + "c9.ide.run.debug": "#a46abda8e9", "c9.automate": "#47e2c429c9", "c9.ide.ace.emmet": "#6dc4585e02", "c9.ide.ace.gotoline": "#a8ff07c8f4", @@ -88,7 +88,7 @@ "c9.ide.format": "#b0bb91a623", "c9.ide.help.support": "#e95f98f87c", "c9.ide.imgeditor": "#66a9733dc1", - "c9.ide.immediate": "#4b0057aa7a", + "c9.ide.immediate": "#520ee525c0", "c9.ide.installer": "#0fde9f0067", "c9.ide.mount": "#da6ad73c5b", "c9.ide.navigate": "#c191d9b92f", diff --git a/plugins/c9.core/ext.js b/plugins/c9.core/ext.js index f5b90e52..29369049 100644 --- a/plugins/c9.core/ext.js +++ b/plugins/c9.core/ext.js @@ -530,8 +530,8 @@ define(function(require, exports, module) { }); } - function cleanUp(keepElements) { - if (!keepElements) { + function cleanUp(what) { + if (!what || ~what.indexOf("elements")) { // Loop through elements elements.forEach(function(element) { element.destroy(true, true); @@ -542,33 +542,36 @@ define(function(require, exports, module) { } // Loop through events - events.forEach(function(eventRecord) { - var event = eventRegistry[eventRecord[0]]; - if (!event) return; // this happens with mock plugins during testing - var type = eventRecord[1]; - var id = eventRecord[2]; - var _events = event._events; - var eventList = _events && _events[type]; - if (typeof eventList == "function") { - if (eventList.listenerId == id) - event.off(type, eventList); - } else if (Array.isArray(eventList)) { - eventList.some(function(listener) { - if (listener.listenerId != id) return; - event.off(type, listener); - return true; - }); - } - }); - events = []; + if (!what || ~what.indexOf("events")) { + events.forEach(function(eventRecord) { + var event = eventRegistry[eventRecord[0]]; + if (!event) return; // this happens with mock plugins during testing + var type = eventRecord[1]; + var id = eventRecord[2]; + var _events = event._events; + var eventList = _events && _events[type]; + if (typeof eventList == "function") { + if (eventList.listenerId == id) + event.off(type, eventList); + } else if (Array.isArray(eventList)) { + eventList.some(function(listener) { + if (listener.listenerId != id) return; + event.off(type, listener); + return true; + }); + } + }); + events = []; + onNewEvents = {}; + } // Loop through other - other.forEach(function(o) { - o(); - }); - other = []; - - onNewEvents = {}; + if (!what || ~what.indexOf("other")) { + other.forEach(function(o) { + o(); + }); + other = []; + } } function setAPIKey(apikey){ diff --git a/plugins/c9.ide.ui/lib/menu/menu.js b/plugins/c9.ide.ui/lib/menu/menu.js index 8c786579..f2525684 100644 --- a/plugins/c9.ide.ui/lib/menu/menu.js +++ b/plugins/c9.ide.ui/lib/menu/menu.js @@ -1530,8 +1530,8 @@ apf.item = function(struct, tagName){ //@todo Anim effect here? this.dispatchEvent("click", { - xmlContext : this.parentNode.xmlReference, - opener : this.parentNode.opener + xmlContext : (this.parentNode || 0).xmlReference, + opener : (this.parentNode || 0).opener }); From 1d9d07f48322a5c853f6102a68b36b9b050e8d3e Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Wed, 23 Sep 2015 16:01:21 -0700 Subject: [PATCH 004/430] Hello message should be a comment --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a4730c92..70ba314b 100644 --- a/package.json +++ b/package.json @@ -88,7 +88,7 @@ "c9.ide.format": "#b0bb91a623", "c9.ide.help.support": "#e95f98f87c", "c9.ide.imgeditor": "#66a9733dc1", - "c9.ide.immediate": "#520ee525c0", + "c9.ide.immediate": "#6cd73fca42", "c9.ide.installer": "#0fde9f0067", "c9.ide.mount": "#da6ad73c5b", "c9.ide.navigate": "#c191d9b92f", From bf45f1820182f3d8ebf4120b757fdc1640cf77e5 Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Wed, 23 Sep 2015 16:46:38 -0700 Subject: [PATCH 005/430] Tweaks to make menus work better --- package.json | 2 +- plugins/c9.ide.ui/lib/menu/menu.js | 2 ++ plugins/c9.ide.ui/ui.js | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 70ba314b..3eb09394 100644 --- a/package.json +++ b/package.json @@ -88,7 +88,7 @@ "c9.ide.format": "#b0bb91a623", "c9.ide.help.support": "#e95f98f87c", "c9.ide.imgeditor": "#66a9733dc1", - "c9.ide.immediate": "#6cd73fca42", + "c9.ide.immediate": "#9dc67b8232", "c9.ide.installer": "#0fde9f0067", "c9.ide.mount": "#da6ad73c5b", "c9.ide.navigate": "#c191d9b92f", diff --git a/plugins/c9.ide.ui/lib/menu/menu.js b/plugins/c9.ide.ui/lib/menu/menu.js index f2525684..711e7ac9 100644 --- a/plugins/c9.ide.ui/lib/menu/menu.js +++ b/plugins/c9.ide.ui/lib/menu/menu.js @@ -738,6 +738,8 @@ apf.menu = function(struct, tagName){ * @param {String} value The value of the item to select. */ this.select = function(group, value){ + this.selectedValue = value; + var nodes = this.childNodes; var i, l = nodes.length; for (i = 0; i < l; i++) { diff --git a/plugins/c9.ide.ui/ui.js b/plugins/c9.ide.ui/ui.js index d45b7f5b..3b5b7030 100644 --- a/plugins/c9.ide.ui/ui.js +++ b/plugins/c9.ide.ui/ui.js @@ -114,6 +114,7 @@ define(function(require, module, exports) { }; } wrap(apf.item.prototype, "checked", false); + wrap(apf.item.prototype, "selected", false); wrap(apf.spinner.prototype, "value", true); wrap(apf.group.prototype, "value", false); wrap(apf.checkbox.prototype, "value", false); From 4d2ec63302f7648b23b547f365e075d347d636a6 Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Wed, 23 Sep 2015 17:03:03 -0700 Subject: [PATCH 006/430] Revert unneeded change --- plugins/c9.ide.ui/ui.js | 1 - 1 file changed, 1 deletion(-) diff --git a/plugins/c9.ide.ui/ui.js b/plugins/c9.ide.ui/ui.js index 3b5b7030..d45b7f5b 100644 --- a/plugins/c9.ide.ui/ui.js +++ b/plugins/c9.ide.ui/ui.js @@ -114,7 +114,6 @@ define(function(require, module, exports) { }; } wrap(apf.item.prototype, "checked", false); - wrap(apf.item.prototype, "selected", false); wrap(apf.spinner.prototype, "value", true); wrap(apf.group.prototype, "value", false); wrap(apf.checkbox.prototype, "value", false); From c45aa912c71add621c839b2dc8aff48448c1d71f Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Wed, 23 Sep 2015 22:39:06 -0700 Subject: [PATCH 007/430] Asking runners if a file is a test file --- package.json | 2 ++ plugins/c9.nodeapi/events.js | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index d156b3cb..2e22cfb0 100644 --- a/package.json +++ b/package.json @@ -108,6 +108,8 @@ "c9.ide.save": "#e00549cb0f", "c9.ide.scm": "#0bccfb982b", "c9.ide.terminal.monitor": "#b76f1c9f24", + "c9.ide.test": "#bf476acc57", + "c9.ide.test.mocha": "#3f96974268", "c9.ide.theme.flat": "#2de8414db7", "c9.ide.threewaymerge": "#229382aa0b", "c9.ide.undo": "#b028bcb4d5", diff --git a/plugins/c9.nodeapi/events.js b/plugins/c9.nodeapi/events.js index 027cace5..ecfbd017 100644 --- a/plugins/c9.nodeapi/events.js +++ b/plugins/c9.nodeapi/events.js @@ -190,7 +190,7 @@ EventEmitter.prototype.on = EventEmitter.prototype.addListener; * ``` */ -EventEmitter.prototype.once = function(type, listener) { +EventEmitter.prototype.once = function(type, listener, plugin) { var self = this; var wrapped = function() { @@ -199,7 +199,7 @@ EventEmitter.prototype.once = function(type, listener) { } wrapped.listener = listener; - self.on(type, wrapped); + self.on(type, wrapped, plugin); return this; }; From b640a4978d715d3fc1f63c4e3592e7919fe659bd Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Wed, 23 Sep 2015 22:57:50 -0700 Subject: [PATCH 008/430] Different strategy. Use cached file list while test panel is closed --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 2e22cfb0..aabf5156 100644 --- a/package.json +++ b/package.json @@ -108,8 +108,8 @@ "c9.ide.save": "#e00549cb0f", "c9.ide.scm": "#0bccfb982b", "c9.ide.terminal.monitor": "#b76f1c9f24", - "c9.ide.test": "#bf476acc57", - "c9.ide.test.mocha": "#3f96974268", + "c9.ide.test": "#dac5189891", + "c9.ide.test.mocha": "#1cc6097f87", "c9.ide.theme.flat": "#2de8414db7", "c9.ide.threewaymerge": "#229382aa0b", "c9.ide.undo": "#b028bcb4d5", From dfdfed1677c85bdfb4dfe46d8dc03663182192b2 Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Thu, 24 Sep 2015 09:54:04 -0700 Subject: [PATCH 009/430] Revert "Different strategy. Use cached file list while test panel is closed" This reverts commit b640a4978d715d3fc1f63c4e3592e7919fe659bd. --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index aabf5156..d73e0313 100644 --- a/package.json +++ b/package.json @@ -108,8 +108,8 @@ "c9.ide.save": "#e00549cb0f", "c9.ide.scm": "#0bccfb982b", "c9.ide.terminal.monitor": "#b76f1c9f24", - "c9.ide.test": "#dac5189891", - "c9.ide.test.mocha": "#1cc6097f87", + "c9.ide.test": "#cdddddeaca", + "c9.ide.test.mocha": "#8ca257672c", "c9.ide.theme.flat": "#2de8414db7", "c9.ide.threewaymerge": "#229382aa0b", "c9.ide.undo": "#b028bcb4d5", From a08a19495dac0a5749456a6060e6ffd204918ce5 Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Thu, 24 Sep 2015 15:52:21 -0700 Subject: [PATCH 010/430] Better Test Runner Icons. Use Declarative Definition For Test Finding --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index d73e0313..2dc832ca 100644 --- a/package.json +++ b/package.json @@ -102,14 +102,14 @@ "c9.ide.recentfiles": "#7c099abf40", "c9.ide.remote": "#301d2ab519", "c9.ide.processlist": "#2b12cd1bdd", - "c9.ide.run": "#ba97f384a6", + "c9.ide.run": "#28e0a7bff0", "c9.ide.run.build": "#0598fff697", "c9.ide.run.debug.xdebug": "#61dcbd0180", "c9.ide.save": "#e00549cb0f", "c9.ide.scm": "#0bccfb982b", "c9.ide.terminal.monitor": "#b76f1c9f24", - "c9.ide.test": "#cdddddeaca", - "c9.ide.test.mocha": "#8ca257672c", + "c9.ide.test": "#a69ce0883a", + "c9.ide.test.mocha": "#b09bdc1213", "c9.ide.theme.flat": "#2de8414db7", "c9.ide.threewaymerge": "#229382aa0b", "c9.ide.undo": "#b028bcb4d5", From f77a2907466d1f229fed49e923cb1f9a850adeff Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Thu, 24 Sep 2015 16:41:55 -0700 Subject: [PATCH 011/430] Fixes the output parser for the mocha test runner --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 2dc832ca..79de02ef 100644 --- a/package.json +++ b/package.json @@ -108,8 +108,8 @@ "c9.ide.save": "#e00549cb0f", "c9.ide.scm": "#0bccfb982b", "c9.ide.terminal.monitor": "#b76f1c9f24", - "c9.ide.test": "#a69ce0883a", - "c9.ide.test.mocha": "#b09bdc1213", + "c9.ide.test": "#101653c7d2", + "c9.ide.test.mocha": "#14776fe6ab", "c9.ide.theme.flat": "#2de8414db7", "c9.ide.threewaymerge": "#229382aa0b", "c9.ide.undo": "#b028bcb4d5", From 6adc3ce2bc4820b7699bb8a8eaa0a9aa94d8d604 Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Thu, 24 Sep 2015 17:35:49 -0700 Subject: [PATCH 012/430] Scroll to the annotation line. Run test when saving --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 79de02ef..6198f21c 100644 --- a/package.json +++ b/package.json @@ -108,8 +108,8 @@ "c9.ide.save": "#e00549cb0f", "c9.ide.scm": "#0bccfb982b", "c9.ide.terminal.monitor": "#b76f1c9f24", - "c9.ide.test": "#101653c7d2", - "c9.ide.test.mocha": "#14776fe6ab", + "c9.ide.test": "#c10c84b813", + "c9.ide.test.mocha": "#f623146cee", "c9.ide.theme.flat": "#2de8414db7", "c9.ide.threewaymerge": "#229382aa0b", "c9.ide.undo": "#b028bcb4d5", From d15880f167ad071950480c334c8e5bbf8e9214b6 Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Thu, 24 Sep 2015 17:45:43 -0700 Subject: [PATCH 013/430] Fix options menu --- package.json | 4 ++-- plugins/c9.ide.layout.classic/themes/flat-light.less | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 6198f21c..f1cbb08a 100644 --- a/package.json +++ b/package.json @@ -108,8 +108,8 @@ "c9.ide.save": "#e00549cb0f", "c9.ide.scm": "#0bccfb982b", "c9.ide.terminal.monitor": "#b76f1c9f24", - "c9.ide.test": "#c10c84b813", - "c9.ide.test.mocha": "#f623146cee", + "c9.ide.test": "#6bb1636f86", + "c9.ide.test.mocha": "#4d3ad597be", "c9.ide.theme.flat": "#2de8414db7", "c9.ide.threewaymerge": "#229382aa0b", "c9.ide.undo": "#b028bcb4d5", diff --git a/plugins/c9.ide.layout.classic/themes/flat-light.less b/plugins/c9.ide.layout.classic/themes/flat-light.less index e5308d0f..a1b36700 100644 --- a/plugins/c9.ide.layout.classic/themes/flat-light.less +++ b/plugins/c9.ide.layout.classic/themes/flat-light.less @@ -424,7 +424,7 @@ box-shadow: none; } -.runner-form-header{ +body .runner-form-header{ border-bottom: 1px solid @border-highlight-dark; } From 3475a001e560702c0d273d4976e0705d3a585d42 Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Thu, 24 Sep 2015 17:56:43 -0700 Subject: [PATCH 014/430] Fix opening the test config from the Cloud9 menu --- package.json | 2 +- plugins/c9.ide.editors/tabmanager.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index f1cbb08a..cb7ef170 100644 --- a/package.json +++ b/package.json @@ -108,7 +108,7 @@ "c9.ide.save": "#e00549cb0f", "c9.ide.scm": "#0bccfb982b", "c9.ide.terminal.monitor": "#b76f1c9f24", - "c9.ide.test": "#6bb1636f86", + "c9.ide.test": "#cf0766483f", "c9.ide.test.mocha": "#4d3ad597be", "c9.ide.theme.flat": "#2de8414db7", "c9.ide.threewaymerge": "#229382aa0b", diff --git a/plugins/c9.ide.editors/tabmanager.js b/plugins/c9.ide.editors/tabmanager.js index 2d76dbbf..5ccbe4cf 100644 --- a/plugins/c9.ide.editors/tabmanager.js +++ b/plugins/c9.ide.editors/tabmanager.js @@ -1075,7 +1075,7 @@ define(function(require, module, exports) { options.document.title = basename(path); options.document.tooltip = path; } - if (typeof options.value == "string") + if (typeof options.value == "string" && !options.newOnError) options.document.value = options.value; // if (options.document.filter === undefined) // options.document.filter = true; @@ -1091,7 +1091,7 @@ define(function(require, module, exports) { var doc = options.document; var loadFromDisk = path && (!doc || doc.value === undefined) - && options.value === undefined + && (options.value === undefined || options.newOnError) // autoload to false prevents loading data, used by image editor && (!editor || editor.autoload !== false); From 68e96cc70e3d37ecf88f0598ba89e3dc3b9fde1e Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Thu, 24 Sep 2015 18:46:33 -0700 Subject: [PATCH 015/430] Added Icon to Run button --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index cb7ef170..006980df 100644 --- a/package.json +++ b/package.json @@ -108,7 +108,7 @@ "c9.ide.save": "#e00549cb0f", "c9.ide.scm": "#0bccfb982b", "c9.ide.terminal.monitor": "#b76f1c9f24", - "c9.ide.test": "#cf0766483f", + "c9.ide.test": "#78485eca4b", "c9.ide.test.mocha": "#4d3ad597be", "c9.ide.theme.flat": "#2de8414db7", "c9.ide.threewaymerge": "#229382aa0b", From 44faa177df0ff1b8cdabc8965595f39cd2b68a7e Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Thu, 24 Sep 2015 18:53:01 -0700 Subject: [PATCH 016/430] Force populate before running tests again. Can't figure out name of test always --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 006980df..8cb8b3b5 100644 --- a/package.json +++ b/package.json @@ -108,7 +108,7 @@ "c9.ide.save": "#e00549cb0f", "c9.ide.scm": "#0bccfb982b", "c9.ide.terminal.monitor": "#b76f1c9f24", - "c9.ide.test": "#78485eca4b", + "c9.ide.test": "#a599006ece", "c9.ide.test.mocha": "#4d3ad597be", "c9.ide.theme.flat": "#2de8414db7", "c9.ide.threewaymerge": "#229382aa0b", From 4d2e304ff0a5ac5d1aac197e3dbff4da490034d1 Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Thu, 24 Sep 2015 18:55:09 -0700 Subject: [PATCH 017/430] Tweak css --- package.json | 2 +- plugins/c9.ide.layout.classic/themes/flat-light.less | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 8cb8b3b5..ba793a44 100644 --- a/package.json +++ b/package.json @@ -108,7 +108,7 @@ "c9.ide.save": "#e00549cb0f", "c9.ide.scm": "#0bccfb982b", "c9.ide.terminal.monitor": "#b76f1c9f24", - "c9.ide.test": "#a599006ece", + "c9.ide.test": "#c3a3c64a26", "c9.ide.test.mocha": "#4d3ad597be", "c9.ide.theme.flat": "#2de8414db7", "c9.ide.threewaymerge": "#229382aa0b", diff --git a/plugins/c9.ide.layout.classic/themes/flat-light.less b/plugins/c9.ide.layout.classic/themes/flat-light.less index a1b36700..a5c1aa37 100644 --- a/plugins/c9.ide.layout.classic/themes/flat-light.less +++ b/plugins/c9.ide.layout.classic/themes/flat-light.less @@ -428,6 +428,11 @@ body .runner-form-header{ border-bottom: 1px solid @border-highlight-dark; } +.runtestbtn .icon{ + background-position: 1px 2px; + height: 22px; +} + @media print, (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 1.25dppx) { .listBP .checked .checkbox { background-position: 0px -61px !important; From 6d58dbc55ca2ba04f069d3bf3b666d93d647f966 Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Fri, 25 Sep 2015 12:49:07 -0700 Subject: [PATCH 018/430] Add Parallel Test Execution to the Test Panel --- package.json | 6 ++-- .../themes/flat-light.less | 6 ++-- plugins/c9.ide.ui/forms.js | 32 ++++++++++++++----- 3 files changed, 31 insertions(+), 13 deletions(-) diff --git a/package.json b/package.json index ba793a44..316c1b53 100644 --- a/package.json +++ b/package.json @@ -80,7 +80,7 @@ "c9.ide.ace.split": "#0ae0151c78", "c9.ide.ace.statusbar": "#d95be89d53", "c9.ide.ace.stripws": "#cf0f42ac59", - "c9.ide.behaviors": "#e2c7f68242", + "c9.ide.behaviors": "#05e5681e2e", "c9.ide.closeconfirmation": "#cee4674141", "c9.ide.configuration": "#382b61f4ab", "c9.ide.dialog.wizard": "#7667ec79a8", @@ -108,8 +108,8 @@ "c9.ide.save": "#e00549cb0f", "c9.ide.scm": "#0bccfb982b", "c9.ide.terminal.monitor": "#b76f1c9f24", - "c9.ide.test": "#c3a3c64a26", - "c9.ide.test.mocha": "#4d3ad597be", + "c9.ide.test": "#6f0835f48a", + "c9.ide.test.mocha": "#46e23743c9", "c9.ide.theme.flat": "#2de8414db7", "c9.ide.threewaymerge": "#229382aa0b", "c9.ide.undo": "#b028bcb4d5", diff --git a/plugins/c9.ide.layout.classic/themes/flat-light.less b/plugins/c9.ide.layout.classic/themes/flat-light.less index a5c1aa37..53d4890e 100644 --- a/plugins/c9.ide.layout.classic/themes/flat-light.less +++ b/plugins/c9.ide.layout.classic/themes/flat-light.less @@ -417,6 +417,8 @@ .has_apf .toolbar-top .sbtb_middle{ height: auto; padding: 4px 25px 3px 5px; + border: 0; + margin-right: 1px; } .top-test-panel{ @@ -425,12 +427,12 @@ } body .runner-form-header{ - border-bottom: 1px solid @border-highlight-dark; + background: whitesmoke; } .runtestbtn .icon{ background-position: 1px 2px; - height: 22px; + height: 21px; } @media print, (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 1.25dppx) { diff --git a/plugins/c9.ide.ui/forms.js b/plugins/c9.ide.ui/forms.js index ba36edb7..0a4f9df4 100644 --- a/plugins/c9.ide.ui/forms.js +++ b/plugins/c9.ide.ui/forms.js @@ -240,9 +240,13 @@ define(function(require, exports, module) { value: options.path ? createBind(options.path) : (options.defaultValue || ""), - min: options.min, - max: options.max, - realtime: typeof options.realtime !== "undefined" ? options.realtime : 1 + min: options.min || 0, + max: options.max || 10, + realtime: typeof options.realtime !== "undefined" ? options.realtime : 1, + onafterchange: function(e) { + if (options.onchange) + options.onchange({ value: e.value }); + }, }) ]; break; @@ -254,16 +258,24 @@ define(function(require, exports, module) { : (options.defaultCheckboxValue || ""), width: width, maxwidth: maxwidth, label: name + ":", - skin: "checkbox_black" + skin: "checkbox_black", + onafterchange: function(e) { + if (options.onchange) + options.onchange({ value: e.value, type: "checkbox" }); + }, }), new ui.spinner({ width: options.width || widths["checked-spinner"], value: options.path ? createBind(options.path) : (options.defaultValue || ""), - min: options.min, - max: options.max, - realtime: typeof options.realtime !== "undefined" ? options.realtime : 1 + min: options.min || 0, + max: options.max || 10, + realtime: typeof options.realtime !== "undefined" ? options.realtime : 1, + onafterchange: function(e) { + if (options.onchange) + options.onchange({ value: e.value, type: "spinner" }); + }, }) ]; break; @@ -275,7 +287,11 @@ define(function(require, exports, module) { : (options.defaultValue || ""), width: options.width || widths["checked-single"], label: name, - skin: "checkbox_black" + skin: "checkbox_black", + onafterchange: function(e){ + if (options.onchange) + options.onchange({ value: e.value }); + } }) ]; break; From 3460aeabc8e2b0696500465b6f0903059bdd98ed Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Fri, 25 Sep 2015 13:06:36 -0700 Subject: [PATCH 019/430] Added icon for terminated state --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 316c1b53..1fdc0034 100644 --- a/package.json +++ b/package.json @@ -108,8 +108,8 @@ "c9.ide.save": "#e00549cb0f", "c9.ide.scm": "#0bccfb982b", "c9.ide.terminal.monitor": "#b76f1c9f24", - "c9.ide.test": "#6f0835f48a", - "c9.ide.test.mocha": "#46e23743c9", + "c9.ide.test": "#1049b049cc", + "c9.ide.test.mocha": "#3126bb6416", "c9.ide.theme.flat": "#2de8414db7", "c9.ide.threewaymerge": "#229382aa0b", "c9.ide.undo": "#b028bcb4d5", From 4c45b459a421958dc17c62245812deadd0b2a1e1 Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Fri, 25 Sep 2015 13:43:45 -0700 Subject: [PATCH 020/430] Align tree items better --- package.json | 2 +- plugins/c9.ide.layout.classic/themes/flat-light.less | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 1fdc0034..5a92c887 100644 --- a/package.json +++ b/package.json @@ -108,7 +108,7 @@ "c9.ide.save": "#e00549cb0f", "c9.ide.scm": "#0bccfb982b", "c9.ide.terminal.monitor": "#b76f1c9f24", - "c9.ide.test": "#1049b049cc", + "c9.ide.test": "#9cbf45fb56", "c9.ide.test.mocha": "#3126bb6416", "c9.ide.theme.flat": "#2de8414db7", "c9.ide.threewaymerge": "#229382aa0b", diff --git a/plugins/c9.ide.layout.classic/themes/flat-light.less b/plugins/c9.ide.layout.classic/themes/flat-light.less index 53d4890e..f49c1bd2 100644 --- a/plugins/c9.ide.layout.classic/themes/flat-light.less +++ b/plugins/c9.ide.layout.classic/themes/flat-light.less @@ -305,6 +305,9 @@ .filetree .tree-row > span.caption { margin-left: 4px; } +.filetree .tree-row.heading > span.caption { + margin-left: 0; +} .toolbar-top.basic .c9-menu-btnDown.scripts{ border: 0; From 721cb0d8f3aa8b8e13b400c1c53f1a5b77e7ea21 Mon Sep 17 00:00:00 2001 From: nightwing Date: Fri, 25 Sep 2015 20:28:15 +0000 Subject: [PATCH 021/430] add scrollbar min width --- node_modules/ace/lib/ace/scrollbar.js | 3 ++- package.json | 4 ++-- plugins/c9.ide.tree/tree.js | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/node_modules/ace/lib/ace/scrollbar.js b/node_modules/ace/lib/ace/scrollbar.js index 466d1af1..465c6942 100644 --- a/node_modules/ace/lib/ace/scrollbar.js +++ b/node_modules/ace/lib/ace/scrollbar.js @@ -98,6 +98,7 @@ var VScrollBar = function(parent, renderer) { this.width = dom.scrollbarWidth(parent.ownerDocument); this.inner.style.width = this.element.style.width = (this.width || 15) + 5 + "px"; + this.$minWidth = 0; }; oop.inherits(VScrollBar, ScrollBar); @@ -124,7 +125,7 @@ oop.inherits(VScrollBar, ScrollBar); * @returns {Number} **/ this.getWidth = function() { - return this.isVisible ? this.width : 0; + return Math.max(this.isVisible ? this.width : 0, this.$minWidth || 0); }; /** diff --git a/package.json b/package.json index 5a92c887..db0ee88f 100644 --- a/package.json +++ b/package.json @@ -55,7 +55,7 @@ "c9" ], "c9plugins": { - "c9.ide.language": "#ff78609c3f", + "c9.ide.language": "#2a4a36fc18", "c9.ide.language.css": "#a649f2a710", "c9.ide.language.generic": "#77d43cfaf0", "c9.ide.language.html": "#0f4078c187", @@ -106,7 +106,7 @@ "c9.ide.run.build": "#0598fff697", "c9.ide.run.debug.xdebug": "#61dcbd0180", "c9.ide.save": "#e00549cb0f", - "c9.ide.scm": "#0bccfb982b", + "c9.ide.scm": "#b07648109a", "c9.ide.terminal.monitor": "#b76f1c9f24", "c9.ide.test": "#9cbf45fb56", "c9.ide.test.mocha": "#3126bb6416", diff --git a/plugins/c9.ide.tree/tree.js b/plugins/c9.ide.tree/tree.js index 54b8e134..788068a8 100644 --- a/plugins/c9.ide.tree/tree.js +++ b/plugins/c9.ide.tree/tree.js @@ -278,9 +278,9 @@ define(function(require, exports, module) { tree.renderer.on("scrollbarVisibilityChanged", updateScrollBarSize); tree.renderer.on("resize", updateScrollBarSize); function updateScrollBarSize() { - var w = tree.renderer.scrollBarV.getWidth(); + var scrollBarV = tree.renderer.scrollBarV; + var w = scrollBarV.isVisible ? scrollBarV.getWidth() : 0; btnTreeSettings.$ext.style.marginRight = Math.max(w - 2, 0) + "px"; - tree.renderer.scroller.style.right = Math.max(w, 10) + "px"; } tree.on("drop", function(e) { From 50ecdb7a28efb25971497a9e64023a9de7b1f3cc Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Sat, 26 Sep 2015 15:53:36 -0700 Subject: [PATCH 022/430] Added caching of test results. 1) Makes test panel load fast. 2) Keeps results between refreshes --- configs/standalone.js | 1 + package.json | 4 ++-- plugins/c9.ide.layout.classic/themes/flat-light.less | 5 ++++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/configs/standalone.js b/configs/standalone.js index 01115eb1..f715efe1 100644 --- a/configs/standalone.js +++ b/configs/standalone.js @@ -184,6 +184,7 @@ module.exports = function(config, optimist) { "./c9.vfs.server/cache", "./c9.vfs.server/download", "./c9.vfs.server/filelist", + "./c9.vfs.server/fetchcache", "./c9.vfs.server/statics", "./c9.analytics/mock_analytics", "./c9.metrics/mock_metrics", diff --git a/package.json b/package.json index db0ee88f..8de54e39 100644 --- a/package.json +++ b/package.json @@ -108,8 +108,8 @@ "c9.ide.save": "#e00549cb0f", "c9.ide.scm": "#b07648109a", "c9.ide.terminal.monitor": "#b76f1c9f24", - "c9.ide.test": "#9cbf45fb56", - "c9.ide.test.mocha": "#3126bb6416", + "c9.ide.test": "#b9b64a5f59", + "c9.ide.test.mocha": "#5af621185e", "c9.ide.theme.flat": "#2de8414db7", "c9.ide.threewaymerge": "#229382aa0b", "c9.ide.undo": "#b028bcb4d5", diff --git a/plugins/c9.ide.layout.classic/themes/flat-light.less b/plugins/c9.ide.layout.classic/themes/flat-light.less index f49c1bd2..fb1592a9 100644 --- a/plugins/c9.ide.layout.classic/themes/flat-light.less +++ b/plugins/c9.ide.layout.classic/themes/flat-light.less @@ -435,7 +435,7 @@ body .runner-form-header{ .runtestbtn .icon{ background-position: 1px 2px; - height: 21px; + height: 22px; } @media print, (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 1.25dppx) { @@ -493,4 +493,7 @@ body .runner-form-header{ .c9-toolbarbutton-glossy .c9-icon { height: 19px; } + .runtestbtn .icon{ + height: 21px; + } } \ No newline at end of file From c2c5b44a7940ef242ed3d1ce6d9116229a349478 Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Sat, 26 Sep 2015 16:00:59 -0700 Subject: [PATCH 023/430] Don't respond to directory watchers --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8de54e39..c2f210e7 100644 --- a/package.json +++ b/package.json @@ -108,7 +108,7 @@ "c9.ide.save": "#e00549cb0f", "c9.ide.scm": "#b07648109a", "c9.ide.terminal.monitor": "#b76f1c9f24", - "c9.ide.test": "#b9b64a5f59", + "c9.ide.test": "#73d636e575", "c9.ide.test.mocha": "#5af621185e", "c9.ide.theme.flat": "#2de8414db7", "c9.ide.threewaymerge": "#229382aa0b", From a28e90b9d27e1fd54168e0634b553ea07e4b2356 Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Sat, 26 Sep 2015 16:03:34 -0700 Subject: [PATCH 024/430] cleanup --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index c2f210e7..f5579935 100644 --- a/package.json +++ b/package.json @@ -108,7 +108,7 @@ "c9.ide.save": "#e00549cb0f", "c9.ide.scm": "#b07648109a", "c9.ide.terminal.monitor": "#b76f1c9f24", - "c9.ide.test": "#73d636e575", + "c9.ide.test": "#20e2db457f", "c9.ide.test.mocha": "#5af621185e", "c9.ide.theme.flat": "#2de8414db7", "c9.ide.threewaymerge": "#229382aa0b", From c24b68ead0ded552e413c24ed8c3cc1912c1682f Mon Sep 17 00:00:00 2001 From: nightwing Date: Sun, 27 Sep 2015 18:26:49 +0400 Subject: [PATCH 025/430] allow copy from immediate window --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 3eb09394..826b6876 100644 --- a/package.json +++ b/package.json @@ -88,7 +88,7 @@ "c9.ide.format": "#b0bb91a623", "c9.ide.help.support": "#e95f98f87c", "c9.ide.imgeditor": "#66a9733dc1", - "c9.ide.immediate": "#9dc67b8232", + "c9.ide.immediate": "#7370cd6812", "c9.ide.installer": "#0fde9f0067", "c9.ide.mount": "#da6ad73c5b", "c9.ide.navigate": "#c191d9b92f", From 33942fd965aa4cf7dba7fc1240a13190ee4c3ac5 Mon Sep 17 00:00:00 2001 From: nightwing Date: Mon, 28 Sep 2015 12:43:29 +0400 Subject: [PATCH 026/430] restore old notebook mode for immediate --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 826b6876..ef2f994b 100644 --- a/package.json +++ b/package.json @@ -76,7 +76,7 @@ "c9.ide.ace.emmet": "#6dc4585e02", "c9.ide.ace.gotoline": "#a8ff07c8f4", "c9.ide.ace.keymaps": "#bf6d36213f", - "c9.ide.ace.repl": "#7989bbd07f", + "c9.ide.ace.repl": "#5aae9a5461", "c9.ide.ace.split": "#0ae0151c78", "c9.ide.ace.statusbar": "#d95be89d53", "c9.ide.ace.stripws": "#cf0f42ac59", From 16ac761224bc55fb448339e632d35daf01b0f023 Mon Sep 17 00:00:00 2001 From: Lennart kats Date: Tue, 29 Sep 2015 12:20:20 +0000 Subject: [PATCH 027/430] Add new workaround for shared VFS redis entry in onlinedev --- configs/client-default.js | 3 ++- plugins/c9.vfs.client/endpoint.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/configs/client-default.js b/configs/client-default.js index 19443ec5..c71e359d 100644 --- a/configs/client-default.js +++ b/configs/client-default.js @@ -122,7 +122,8 @@ module.exports = function(options) { servers: options.vfsServers, updateServers: hosted, strictRegion: options.strictRegion - || options.mode === "beta" && "beta" + || options.mode === "beta" && "beta", + ignoreProtocolVersion: options.ignoreProtocolVersion, }, { packagePath: "plugins/c9.ide.auth/auth", diff --git a/plugins/c9.vfs.client/endpoint.js b/plugins/c9.vfs.client/endpoint.js index b2c4524f..f3484697 100644 --- a/plugins/c9.vfs.client/endpoint.js +++ b/plugins/c9.vfs.client/endpoint.js @@ -44,6 +44,7 @@ define(function(require, exports, module) { options.updateServers = false; var strictRegion = query.region || options.strictRegion; + var ignoreProtocolVersion = options.ignoreProtocolVersion; var region = strictRegion || options.region; var servers; @@ -319,7 +320,7 @@ define(function(require, exports, module) { return isBetaServer === isBetaClient; }); servers = servers.filter(function(s) { - return s.version == undefined || s.version == version; + return ignoreProtocolVersion || s.version == undefined || s.version == version; }); return servers.sort(function(a, b) { if (a.region == b.region) { From 86121e1a34568d3b893a252eac48036cea5cad0f Mon Sep 17 00:00:00 2001 From: Tim Robinson Date: Wed, 30 Sep 2015 12:31:13 +0000 Subject: [PATCH 028/430] Report error dialog errors to raygun --- plugins/c9.error/logger.raygun.js | 5 +++++ plugins/c9.ide.dialog.common/error.js | 8 ++++++-- plugins/c9.ide.errorhandler/raygun_error_handler.js | 4 +++- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/plugins/c9.error/logger.raygun.js b/plugins/c9.error/logger.raygun.js index 784832c8..c1997922 100644 --- a/plugins/c9.error/logger.raygun.js +++ b/plugins/c9.error/logger.raygun.js @@ -1,3 +1,8 @@ +/** + * This error handler is for server side error logging. + * + **/ + "use strict"; plugin.consumes = ["raygun"]; diff --git a/plugins/c9.ide.dialog.common/error.js b/plugins/c9.ide.dialog.common/error.js index 730e4c15..9fa4b731 100644 --- a/plugins/c9.ide.dialog.common/error.js +++ b/plugins/c9.ide.dialog.common/error.js @@ -1,7 +1,7 @@ define(function(require, exports, module) { "use strict"; - main.consumes = ["Plugin", "ui", "metrics"]; + main.consumes = ["Plugin", "ui", "metrics", "error_handler"]; main.provides = ["dialog.error"]; return main; @@ -9,6 +9,7 @@ define(function(require, exports, module) { var Plugin = imports.Plugin; var ui = imports.ui; var metrics = imports.metrics; + var errorHandler = imports.error_handler; /***** Initialization *****/ @@ -121,7 +122,10 @@ define(function(require, exports, module) { return console.error("empty error message", message); } - console.error("Error dialog shown: ", getMessageString(message)); + errorHandler.log(new Error("Error dialog shown"), { + message: message, + messageString: getMessageString(message), + }); } hide(function() { diff --git a/plugins/c9.ide.errorhandler/raygun_error_handler.js b/plugins/c9.ide.errorhandler/raygun_error_handler.js index 10eae39d..6c20b7be 100644 --- a/plugins/c9.ide.errorhandler/raygun_error_handler.js +++ b/plugins/c9.ide.errorhandler/raygun_error_handler.js @@ -1,5 +1,7 @@ /** - * This error handler catches window.onerror and sends them to raygun.io + * This error handler is for client side error logging + * It also automatically catches window.onerror and sends them to raygun.io + * You can also import it and call .log to manually send an error * * @extends Plugin * @singleton From 2fde10c25a596683d644ee2b743a1b27a48c7f4e Mon Sep 17 00:00:00 2001 From: Tim Robinson Date: Wed, 30 Sep 2015 12:33:12 +0000 Subject: [PATCH 029/430] Only increment dialog.error when it's actually shown to the user, not for empty messages --- plugins/c9.ide.dialog.common/error.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/c9.ide.dialog.common/error.js b/plugins/c9.ide.dialog.common/error.js index 9fa4b731..33e12738 100644 --- a/plugins/c9.ide.dialog.common/error.js +++ b/plugins/c9.ide.dialog.common/error.js @@ -115,13 +115,13 @@ define(function(require, exports, module) { + (message.className ? message.className : ""); if (!message.noError) { - metrics.increment("dialog.error"); - if (!message) { console.trace(); return console.error("empty error message", message); } + metrics.increment("dialog.error"); + errorHandler.log(new Error("Error dialog shown"), { message: message, messageString: getMessageString(message), From e268297b988727770c89e7a7b20bba52d2ac285d Mon Sep 17 00:00:00 2001 From: c9bot Date: Wed, 30 Sep 2015 15:41:45 +0200 Subject: [PATCH 030/430] c9-auto-bump 3.0.2818 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d41e5b2a..7d24c212 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2817", + "version": "3.0.2818", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From b04a97230b1e411b23ae483f22ae9d3221efad8c Mon Sep 17 00:00:00 2001 From: c9bot Date: Wed, 30 Sep 2015 15:45:23 +0200 Subject: [PATCH 031/430] c9-auto-bump 3.0.2819 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7d24c212..71279513 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2818", + "version": "3.0.2819", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 579a282b7bca02bce67270febc2ec204d3c39687 Mon Sep 17 00:00:00 2001 From: c9bot Date: Wed, 30 Sep 2015 16:08:06 +0200 Subject: [PATCH 032/430] c9-auto-bump 3.0.2820 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 71279513..4cc3338d 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2819", + "version": "3.0.2820", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From e703109b9ae6e8a7b3ba63dfb30074148c99ba79 Mon Sep 17 00:00:00 2001 From: c9bot Date: Wed, 30 Sep 2015 16:28:18 +0200 Subject: [PATCH 033/430] c9-auto-bump 3.0.2821 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4cc3338d..fc021649 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2820", + "version": "3.0.2821", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 806cd3b1628569ad99fb295bcb574d914bf267a6 Mon Sep 17 00:00:00 2001 From: c9bot Date: Wed, 30 Sep 2015 16:44:16 +0200 Subject: [PATCH 034/430] c9-auto-bump 3.0.2822 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index fc021649..27feda96 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2821", + "version": "3.0.2822", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From fbb32a1991212a1b358ba5d1a0af6993bc7def4f Mon Sep 17 00:00:00 2001 From: Tim Robinson Date: Wed, 30 Sep 2015 14:57:17 +0000 Subject: [PATCH 035/430] Report all jsonalyzer errors, not just fatal, so we can diagnose --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d41e5b2a..4127134a 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,7 @@ "c9.ide.language.javascript.eslint": "#df7e424b54", "c9.ide.language.javascript.tern": "#40cf04bded", "c9.ide.language.javascript.infer": "#8478e3c702", - "c9.ide.language.jsonalyzer": "#83646961c7", + "c9.ide.language.jsonalyzer": "#a9f0459903", "c9.ide.collab": "#a8e597ae5e", "c9.ide.local": "#a9703b630c", "c9.ide.find": "#35379124ca", From 2f997c24c947fd4c92152ff8596c64b20d35e2bd Mon Sep 17 00:00:00 2001 From: Tim Robinson Date: Wed, 30 Sep 2015 14:59:08 +0000 Subject: [PATCH 036/430] no double error --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4127134a..8f2e7f06 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,7 @@ "c9.ide.language.javascript.eslint": "#df7e424b54", "c9.ide.language.javascript.tern": "#40cf04bded", "c9.ide.language.javascript.infer": "#8478e3c702", - "c9.ide.language.jsonalyzer": "#a9f0459903", + "c9.ide.language.jsonalyzer": "#1836a0d5e0", "c9.ide.collab": "#a8e597ae5e", "c9.ide.local": "#a9703b630c", "c9.ide.find": "#35379124ca", From 1caebd0d0e2d29cbe0a2234a811da58214fc47a3 Mon Sep 17 00:00:00 2001 From: Tim Robinson Date: Wed, 30 Sep 2015 15:05:10 +0000 Subject: [PATCH 037/430] Adding custom data to errors --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8f2e7f06..d99a8c55 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,7 @@ "c9.ide.language.javascript.eslint": "#df7e424b54", "c9.ide.language.javascript.tern": "#40cf04bded", "c9.ide.language.javascript.infer": "#8478e3c702", - "c9.ide.language.jsonalyzer": "#1836a0d5e0", + "c9.ide.language.jsonalyzer": "#3c50f52868", "c9.ide.collab": "#a8e597ae5e", "c9.ide.local": "#a9703b630c", "c9.ide.find": "#35379124ca", From 43b645088066c9cba8d67a17f5df10479509ff0f Mon Sep 17 00:00:00 2001 From: Tim Robinson Date: Wed, 30 Sep 2015 15:05:39 +0000 Subject: [PATCH 038/430] Actually send the error --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d99a8c55..9da3e523 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,7 @@ "c9.ide.language.javascript.eslint": "#df7e424b54", "c9.ide.language.javascript.tern": "#40cf04bded", "c9.ide.language.javascript.infer": "#8478e3c702", - "c9.ide.language.jsonalyzer": "#3c50f52868", + "c9.ide.language.jsonalyzer": "#054330c746", "c9.ide.collab": "#a8e597ae5e", "c9.ide.local": "#a9703b630c", "c9.ide.find": "#35379124ca", From e81dadc93a6a074214e219d36774d5b0f4e4ff74 Mon Sep 17 00:00:00 2001 From: Tim Robinson Date: Wed, 30 Sep 2015 15:31:09 +0000 Subject: [PATCH 039/430] Don't send all options --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9da3e523..1b6fd006 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,7 @@ "c9.ide.language.javascript.eslint": "#df7e424b54", "c9.ide.language.javascript.tern": "#40cf04bded", "c9.ide.language.javascript.infer": "#8478e3c702", - "c9.ide.language.jsonalyzer": "#054330c746", + "c9.ide.language.jsonalyzer": "#d44cb13695", "c9.ide.collab": "#a8e597ae5e", "c9.ide.local": "#a9703b630c", "c9.ide.find": "#35379124ca", From 77d45ce1a2430ae81cbc33322e998ae94f30fe21 Mon Sep 17 00:00:00 2001 From: c9bot Date: Wed, 30 Sep 2015 17:50:54 +0200 Subject: [PATCH 040/430] c9-auto-bump 3.0.2823 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 27feda96..3ddb1160 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2822", + "version": "3.0.2823", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 464978b08d96edcf23a904bb99949750e05871ca Mon Sep 17 00:00:00 2001 From: c9bot Date: Wed, 30 Sep 2015 17:51:14 +0200 Subject: [PATCH 041/430] c9-auto-bump 3.0.2824 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 644131c0..92dfd10e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2823", + "version": "3.0.2824", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 10dbf268a9981462838218a3e7fb8f05022c5aee Mon Sep 17 00:00:00 2001 From: c9bot Date: Wed, 30 Sep 2015 17:57:35 +0200 Subject: [PATCH 042/430] c9-auto-bump 3.0.2825 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 92dfd10e..62d1c3a4 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2824", + "version": "3.0.2825", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 0de67163a7bad959acd7cc4f0aa29618753316b6 Mon Sep 17 00:00:00 2001 From: c9bot Date: Wed, 30 Sep 2015 18:11:53 +0200 Subject: [PATCH 043/430] c9-auto-bump 3.0.2826 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 62d1c3a4..0ab1ec9b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2825", + "version": "3.0.2826", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 670d648915eade6f130e1947e3c38a6bf0f86e91 Mon Sep 17 00:00:00 2001 From: nightwing Date: Thu, 1 Oct 2015 01:45:12 +0400 Subject: [PATCH 044/430] fix undefined error on tests with before handler --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 26e97bbf..b31001ba 100644 --- a/package.json +++ b/package.json @@ -108,7 +108,7 @@ "c9.ide.save": "#e00549cb0f", "c9.ide.scm": "#2398826541", "c9.ide.terminal.monitor": "#b76f1c9f24", - "c9.ide.test": "#20e2db457f", + "c9.ide.test": "#44389be3a9", "c9.ide.test.mocha": "#5af621185e", "c9.ide.theme.flat": "#2de8414db7", "c9.ide.threewaymerge": "#229382aa0b", From 181cf11ce59bc4fb562dccf89d2f990a5d51045b Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Wed, 30 Sep 2015 15:28:20 -0700 Subject: [PATCH 045/430] Create Tests Dynamically When Needed --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 26e97bbf..ff2fe5dd 100644 --- a/package.json +++ b/package.json @@ -108,8 +108,8 @@ "c9.ide.save": "#e00549cb0f", "c9.ide.scm": "#2398826541", "c9.ide.terminal.monitor": "#b76f1c9f24", - "c9.ide.test": "#20e2db457f", - "c9.ide.test.mocha": "#5af621185e", + "c9.ide.test": "#22d6877b66", + "c9.ide.test.mocha": "#ff5603786d", "c9.ide.theme.flat": "#2de8414db7", "c9.ide.threewaymerge": "#229382aa0b", "c9.ide.undo": "#b028bcb4d5", From 241e14da318348909571f99ab2785fc175787c2f Mon Sep 17 00:00:00 2001 From: nightwing Date: Thu, 1 Oct 2015 02:52:03 +0400 Subject: [PATCH 046/430] fix issue with stale line widgets --- node_modules/ace/lib/ace/line_widgets.js | 2 ++ node_modules/ace/lib/ace/selection.js | 6 ++++-- package.json | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/node_modules/ace/lib/ace/line_widgets.js b/node_modules/ace/lib/ace/line_widgets.js index c8154a13..6eaffc88 100644 --- a/node_modules/ace/lib/ace/line_widgets.js +++ b/node_modules/ace/lib/ace/line_widgets.js @@ -294,6 +294,8 @@ function LineWidgets(session) { if (!w || !w.el) continue; if (w.session != this.session) continue; if (!w._inDocument) { + if (this.session.lineWidgets[w.row] != w) + continue; w._inDocument = true; renderer.container.appendChild(w.el); } diff --git a/node_modules/ace/lib/ace/selection.js b/node_modules/ace/lib/ace/selection.js index ed57682f..328df4b0 100644 --- a/node_modules/ace/lib/ace/selection.js +++ b/node_modules/ace/lib/ace/selection.js @@ -799,8 +799,10 @@ var Selection = function(session) { var docPos = this.session.screenToDocumentPosition(screenPos.row + rows, screenPos.column); if (rows !== 0 && chars === 0 && docPos.row === this.lead.row && docPos.column === this.lead.column) { - if (this.session.lineWidgets && this.session.lineWidgets[docPos.row]) - docPos.row++; + if (this.session.lineWidgets && this.session.lineWidgets[docPos.row]) { + if (docPos.row > 0 || rows > 0) + docPos.row++; + } } // move the cursor and update the desired column diff --git a/package.json b/package.json index 92b44af5..38238852 100644 --- a/package.json +++ b/package.json @@ -108,7 +108,7 @@ "c9.ide.save": "#e00549cb0f", "c9.ide.scm": "#2398826541", "c9.ide.terminal.monitor": "#b76f1c9f24", - "c9.ide.test": "#43451098ec", + "c9.ide.test": "#b772e67dee", "c9.ide.test.mocha": "#ff5603786d", "c9.ide.theme.flat": "#2de8414db7", "c9.ide.threewaymerge": "#229382aa0b", From b0d6bc8c8279af634df877281128d7e6db76e571 Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Wed, 30 Sep 2015 16:16:23 -0700 Subject: [PATCH 047/430] Buffer mocha output and parse accordingly --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 92b44af5..ef0894a5 100644 --- a/package.json +++ b/package.json @@ -108,8 +108,8 @@ "c9.ide.save": "#e00549cb0f", "c9.ide.scm": "#2398826541", "c9.ide.terminal.monitor": "#b76f1c9f24", - "c9.ide.test": "#43451098ec", - "c9.ide.test.mocha": "#ff5603786d", + "c9.ide.test": "#045e0872db", + "c9.ide.test.mocha": "#fef601f0b9", "c9.ide.theme.flat": "#2de8414db7", "c9.ide.threewaymerge": "#229382aa0b", "c9.ide.undo": "#b028bcb4d5", From 3d2c9d891e986e3cd51f4ab7a41fa0df5f1bf3fd Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Wed, 30 Sep 2015 16:44:56 -0700 Subject: [PATCH 048/430] Never disregard output --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 2293602d..de52f855 100644 --- a/package.json +++ b/package.json @@ -108,8 +108,8 @@ "c9.ide.save": "#e00549cb0f", "c9.ide.scm": "#2398826541", "c9.ide.terminal.monitor": "#b76f1c9f24", - "c9.ide.test": "#2d7d12cdf7", - "c9.ide.test.mocha": "#fef601f0b9", + "c9.ide.test": "#d9a5a60ff7", + "c9.ide.test.mocha": "#88fee23065", "c9.ide.theme.flat": "#2de8414db7", "c9.ide.threewaymerge": "#229382aa0b", "c9.ide.undo": "#b028bcb4d5", From c737baecac414c1a23274911712884fb2874733e Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Wed, 30 Sep 2015 17:28:18 -0700 Subject: [PATCH 049/430] Fix bug where prepare nodes where not properly imported --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index de52f855..9029d9e5 100644 --- a/package.json +++ b/package.json @@ -108,7 +108,7 @@ "c9.ide.save": "#e00549cb0f", "c9.ide.scm": "#2398826541", "c9.ide.terminal.monitor": "#b76f1c9f24", - "c9.ide.test": "#d9a5a60ff7", + "c9.ide.test": "#44f88ba2c9", "c9.ide.test.mocha": "#88fee23065", "c9.ide.theme.flat": "#2de8414db7", "c9.ide.threewaymerge": "#229382aa0b", From 2f42c0d5438c6b285bc01a520a994cb5f7cccbc7 Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Wed, 30 Sep 2015 17:34:33 -0700 Subject: [PATCH 050/430] Restore Results Pane after refresh --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9029d9e5..1c1374a5 100644 --- a/package.json +++ b/package.json @@ -108,7 +108,7 @@ "c9.ide.save": "#e00549cb0f", "c9.ide.scm": "#2398826541", "c9.ide.terminal.monitor": "#b76f1c9f24", - "c9.ide.test": "#44f88ba2c9", + "c9.ide.test": "#fb8221e5de", "c9.ide.test.mocha": "#88fee23065", "c9.ide.theme.flat": "#2de8414db7", "c9.ide.threewaymerge": "#229382aa0b", From a6d8bc130084c8b2ea84ec982f32e6522bae9443 Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Wed, 30 Sep 2015 17:56:18 -0700 Subject: [PATCH 051/430] Decorate a file after runners have inited --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1c1374a5..7771d5de 100644 --- a/package.json +++ b/package.json @@ -108,7 +108,7 @@ "c9.ide.save": "#e00549cb0f", "c9.ide.scm": "#2398826541", "c9.ide.terminal.monitor": "#b76f1c9f24", - "c9.ide.test": "#fb8221e5de", + "c9.ide.test": "#0359e40079", "c9.ide.test.mocha": "#88fee23065", "c9.ide.theme.flat": "#2de8414db7", "c9.ide.threewaymerge": "#229382aa0b", From d85bf0be1b4c2102ef5fa269568d4fb6eb94908a Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Wed, 30 Sep 2015 18:24:53 -0700 Subject: [PATCH 052/430] Store coverage information in cache --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7771d5de..3630534a 100644 --- a/package.json +++ b/package.json @@ -108,7 +108,7 @@ "c9.ide.save": "#e00549cb0f", "c9.ide.scm": "#2398826541", "c9.ide.terminal.monitor": "#b76f1c9f24", - "c9.ide.test": "#0359e40079", + "c9.ide.test": "#d48181f8f6", "c9.ide.test.mocha": "#88fee23065", "c9.ide.theme.flat": "#2de8414db7", "c9.ide.threewaymerge": "#229382aa0b", From c55ffd1b35938cdb2b973215145e01ffdd70fc0d Mon Sep 17 00:00:00 2001 From: c9bot Date: Thu, 1 Oct 2015 11:01:38 +0200 Subject: [PATCH 053/430] c9-auto-bump 3.0.2827 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0ab1ec9b..5bdbde87 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2826", + "version": "3.0.2827", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From afc6b21688d98f12921131e52ae491dca23ea95c Mon Sep 17 00:00:00 2001 From: c9bot Date: Thu, 1 Oct 2015 12:00:29 +0200 Subject: [PATCH 054/430] c9-auto-bump 3.0.2828 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 5bdbde87..5f52dd33 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2827", + "version": "3.0.2828", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 54fa807ed27d29f02bb5bb5c91a1e4595726764a Mon Sep 17 00:00:00 2001 From: Tim Robinson Date: Thu, 1 Oct 2015 10:40:17 +0000 Subject: [PATCH 055/430] Turned oberr into a seperate module so we can use it client side --- node_modules/c9/oberr.js | 15 +++++++++++++++ package.json | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 node_modules/c9/oberr.js diff --git a/node_modules/c9/oberr.js b/node_modules/c9/oberr.js new file mode 100644 index 00000000..e3438153 --- /dev/null +++ b/node_modules/c9/oberr.js @@ -0,0 +1,15 @@ +define(function(require, exports, module) { + + /** + * Turns a JS Error into a proper object that can be stringified + * https://github.com/timjrobinson/oberr for more information + **/ + exports.oberr = function(err) { + var ob = {}; + Object.getOwnPropertyNames(err).forEach(function(key) { + ob[key] = err[key]; + }); + return ob; + }; + +}); \ No newline at end of file diff --git a/package.json b/package.json index 5bdbde87..43582c2c 100644 --- a/package.json +++ b/package.json @@ -90,7 +90,7 @@ "c9.ide.imgeditor": "#66a9733dc1", "c9.ide.immediate": "#18c23aa730", "c9.ide.installer": "#0fde9f0067", - "c9.ide.mount": "#dccfb51a2b", + "c9.ide.mount": "#eb390ba326", "c9.ide.navigate": "#c191d9b92f", "c9.ide.newresource": "#981a408a7b", "c9.ide.openfiles": "#7fa4a97fed", From 8ee3e4cad1047f9d7fd0619eb3f2efb23923cd11 Mon Sep 17 00:00:00 2001 From: Tim Robinson Date: Thu, 1 Oct 2015 10:40:44 +0000 Subject: [PATCH 056/430] Don't need to consume oberr --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 43582c2c..47768981 100644 --- a/package.json +++ b/package.json @@ -90,7 +90,7 @@ "c9.ide.imgeditor": "#66a9733dc1", "c9.ide.immediate": "#18c23aa730", "c9.ide.installer": "#0fde9f0067", - "c9.ide.mount": "#eb390ba326", + "c9.ide.mount": "#3e017a3324", "c9.ide.navigate": "#c191d9b92f", "c9.ide.newresource": "#981a408a7b", "c9.ide.openfiles": "#7fa4a97fed", From 4054d149b2994ac06165c854768a79fa5f1f9afd Mon Sep 17 00:00:00 2001 From: Tim Robinson Date: Thu, 1 Oct 2015 10:42:51 +0000 Subject: [PATCH 057/430] oberr is just a function --- node_modules/c9/oberr.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node_modules/c9/oberr.js b/node_modules/c9/oberr.js index e3438153..1a540724 100644 --- a/node_modules/c9/oberr.js +++ b/node_modules/c9/oberr.js @@ -4,7 +4,7 @@ define(function(require, exports, module) { * Turns a JS Error into a proper object that can be stringified * https://github.com/timjrobinson/oberr for more information **/ - exports.oberr = function(err) { + return function oberr(err) { var ob = {}; Object.getOwnPropertyNames(err).forEach(function(key) { ob[key] = err[key]; From 0ec5d2275c946d33c07883c2499b23247783c1d1 Mon Sep 17 00:00:00 2001 From: Dana Date: Thu, 1 Oct 2015 14:39:26 +0000 Subject: [PATCH 058/430] Add Dana to help page --- plugins/c9.ide.help/help.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/c9.ide.help/help.xml b/plugins/c9.ide.help/help.xml index 81c21a71..99a8d7b6 100644 --- a/plugins/c9.ide.help/help.xml +++ b/plugins/c9.ide.help/help.xml @@ -21,7 +21,7 @@

- Arron Bailiss, Bas de Wachter, Fabian Jakobs, Harutyun Amirjanyan, + Arron Bailiss, Bas de Wachter, Dana Ivan, Fabian Jakobs, Harutyun Amirjanyan, Ivar Pruijn, Justin Dray, Lennart Kats, Luca Cipriani, Mostafa Eweda, Matthijs van Henten, Nikolai Onken, Tim Robinson, Ruben Daniels

From c3714fb7a83d62571fa3c9822ff554d2d59397bb Mon Sep 17 00:00:00 2001 From: nightwing Date: Thu, 1 Oct 2015 15:14:14 +0000 Subject: [PATCH 059/430] fix debugger not working with misconfigured localhost --- node_modules/vfs-local/localfs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node_modules/vfs-local/localfs.js b/node_modules/vfs-local/localfs.js index 12fac9dd..f9376f77 100644 --- a/node_modules/vfs-local/localfs.js +++ b/node_modules/vfs-local/localfs.js @@ -1402,7 +1402,7 @@ module.exports = function setup(fsOptions) { tryConnect(); function tryConnect() { var called = false; - var socket = net.connect(port, process.env.OPENSHIFT_DIY_IP || "localhost", function() { + var socket = net.connect(port, "127.0.0.1", function() { if (called) return; called = true; From df57020317afe0b7e1c4ddf382f28439e7da4100 Mon Sep 17 00:00:00 2001 From: nightwing Date: Thu, 1 Oct 2015 15:17:14 +0000 Subject: [PATCH 060/430] fix +9620 tabmanager gets broken for some pane layouts --- plugins/c9.ide.ui/lib/splitbox.js | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/c9.ide.ui/lib/splitbox.js b/plugins/c9.ide.ui/lib/splitbox.js index febfabb3..830137ec 100644 --- a/plugins/c9.ide.ui/lib/splitbox.js +++ b/plugins/c9.ide.ui/lib/splitbox.js @@ -577,6 +577,7 @@ apf.vsplitbox = function(struct, tagName) { if (isPercentage) { fNode.$ext.style.height = ""; fNode.$ext.style.bottom = (100 - parseFloat(fNode.height)) + "%"; + lNode.$ext.style.height = ""; } if (this.$handle) { From b6987ab8b92c480284b5108b4720c006a36498f6 Mon Sep 17 00:00:00 2001 From: c9bot Date: Thu, 1 Oct 2015 17:31:37 +0200 Subject: [PATCH 061/430] c9-auto-bump 3.0.2829 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 5f52dd33..833bf279 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2828", + "version": "3.0.2829", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 23bba932f6b899923ce60c124679714233fe6b4d Mon Sep 17 00:00:00 2001 From: c9bot Date: Thu, 1 Oct 2015 17:32:26 +0200 Subject: [PATCH 062/430] c9-auto-bump 3.0.2830 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 833bf279..c0c72284 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2829", + "version": "3.0.2830", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 738d16e3b9bf17a6ba5e5b832f3187bda62baedc Mon Sep 17 00:00:00 2001 From: c9bot Date: Thu, 1 Oct 2015 17:41:52 +0200 Subject: [PATCH 063/430] c9-auto-bump 3.0.2831 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index c0c72284..49df2536 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2830", + "version": "3.0.2831", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From bcd4339c1a64e5b702cc4a3bf62e5d4feace2269 Mon Sep 17 00:00:00 2001 From: c9bot Date: Thu, 1 Oct 2015 20:49:57 +0200 Subject: [PATCH 064/430] c9-auto-bump 3.0.2832 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 49df2536..0ab9f278 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2831", + "version": "3.0.2832", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 304819f37ea5cf874f700365c972e96cbf4a9da6 Mon Sep 17 00:00:00 2001 From: nightwing Date: Thu, 1 Oct 2015 23:24:36 +0400 Subject: [PATCH 065/430] fix regression in handling right command key on mac --- node_modules/ace/lib/ace/lib/event.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/node_modules/ace/lib/ace/lib/event.js b/node_modules/ace/lib/ace/lib/event.js index 459ce0f2..80a132c5 100644 --- a/node_modules/ace/lib/ace/lib/event.js +++ b/node_modules/ace/lib/ace/lib/event.js @@ -281,7 +281,9 @@ function normalizeCommandKeys(callback, e, keyCode) { keyCode = -1; } - if (hashId & 8 && (keyCode === 91 || keyCode === 92)) { + // keyCode of right command is 93 on mac and 92 on windows. + // keyCode of left command key is 91 + if (hashId & 8 && (keyCode >= 91 && keyCode <= 93)) { keyCode = -1; } From f1611039e7933288769ecacba4cf21dcddf925af Mon Sep 17 00:00:00 2001 From: c9bot Date: Thu, 1 Oct 2015 21:35:53 +0200 Subject: [PATCH 066/430] c9-auto-bump 3.0.2833 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0ab9f278..117f4cec 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2832", + "version": "3.0.2833", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From b4b884d73fe653b8c746c903c561f5c1fd562659 Mon Sep 17 00:00:00 2001 From: c9bot Date: Thu, 1 Oct 2015 22:23:23 +0200 Subject: [PATCH 067/430] c9-auto-bump 3.0.2834 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 117f4cec..6aae9d6e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2833", + "version": "3.0.2834", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 34aa7931f626b0f3aed1191a544a413ea3776271 Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Thu, 1 Oct 2015 13:43:29 -0700 Subject: [PATCH 068/430] Add filter to coverage viewer. Clear coverage properly from cache --- package.json | 2 +- plugins/c9.ide.layout.classic/themes/default-flat-light.less | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 3630534a..22b25250 100644 --- a/package.json +++ b/package.json @@ -108,7 +108,7 @@ "c9.ide.save": "#e00549cb0f", "c9.ide.scm": "#2398826541", "c9.ide.terminal.monitor": "#b76f1c9f24", - "c9.ide.test": "#d48181f8f6", + "c9.ide.test": "#d55b1ee350", "c9.ide.test.mocha": "#88fee23065", "c9.ide.theme.flat": "#2de8414db7", "c9.ide.threewaymerge": "#229382aa0b", diff --git a/plugins/c9.ide.layout.classic/themes/default-flat-light.less b/plugins/c9.ide.layout.classic/themes/default-flat-light.less index 18b8e002..cba9923c 100644 --- a/plugins/c9.ide.layout.classic/themes/default-flat-light.less +++ b/plugins/c9.ide.layout.classic/themes/default-flat-light.less @@ -1226,7 +1226,7 @@ @dropdown-black-image-height: 5px; @dropdown-black-background-position: 50% 50%; @dropdown-black-height: 28px; -@dropdown-black-padding: 8px 0 5px 9px; +@dropdown-black-padding: 7px 8px 5px 9px; @dropdown-black-font-family: @general-font-family; @dropdown-black-font-size: 13px; @dropdown-black-button-width: 24px; From 9d57c90052cf1b5b24385c6cf9f68a68a1676088 Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Thu, 1 Oct 2015 13:59:43 -0700 Subject: [PATCH 069/430] Fix build --- plugins/c9.vfs.server/fetchcache.js | 106 ++++++++++++++++++++++++++++ 1 file changed, 106 insertions(+) create mode 100644 plugins/c9.vfs.server/fetchcache.js diff --git a/plugins/c9.vfs.server/fetchcache.js b/plugins/c9.vfs.server/fetchcache.js new file mode 100644 index 00000000..7e6b4392 --- /dev/null +++ b/plugins/c9.vfs.server/fetchcache.js @@ -0,0 +1,106 @@ +define(function(require, exports, module) { + "use strict"; + + main.consumes = ["Plugin", "vfs.cache", "connect"]; + main.provides = ["vfs.fetchcache"]; + return main; + + function main(options, imports, register) { + var Plugin = imports.Plugin; + var cache = imports["vfs.cache"]; + + var error = require("http-error"); + var Path = require("path"); + var async = require("async"); + + /***** Initialization *****/ + + var plugin = new Plugin("Ajax.org", main.consumes); + + var compress = imports.connect.getModule().compress(); + + cache.registerExtension(function(vfs, callback) { + var restful = vfs.restful.home; + + vfs.restful.home = function(req, res, next) { + var path = unescape(req.uri.pathname); + + if (req.method == "GET" && path.indexOf("/.c9/cache") === 0) { + compress(req, res, function(err) { + if (err) return next(err); + + fetchcache(vfs.vfs, vfs.vfs.env.HOME, vfs.vfsOptions, req, res, next); + }); + } + else + restful(req, res, next); + }; + + callback(); + }); + + function readFile(vfs, path, callback) { + vfs.readfile(path, { encoding: "utf8" }, function(err, meta) { + if (err) + return callback(err); + + var data = ""; + meta.stream.on("data", function(d) { + data += d; + }) + + var done; + meta.stream.on("error", function(e) { + if (done) return; + done = true; + callback(e); + }); + + meta.stream.on("end", function() { + if (done) return; + done = true; + callback(null, data); + }); + }); + } + + function fetchcache(vfs, root, vfsOptions, req, res, next) { + var path = unescape(req.uri.pathname); + + // sandbox path to workspaceDir + path = Path.join(root, path); + // if (path.indexOf(root) !== 0) + // return next(new error.Forbidden("Can't list files outside of the workspace")); + + // Fetch index + readFile(vfs, Path.join(path, "index"), function(err, list){ + if (err) { + var httpErr = new error.NotFound(err.message); + return next(httpErr); + } + + // Fetch each file in the index + async.mapLimit(list.split("\n"), 50, function(p, callback){ + readFile(vfs, Path.join(path, p.replace(/\//g, "\\")), function(ignore, data){ + var json; + try { json = JSON.parse(data); } + catch(e) { json = { type: "file", path: p } } + + callback(null, json); + }); + }, function(ignore, results){ + res.writeHead(200, { "Content-Type": "text/json" }); + res.write(JSON.stringify(results)); + res.end(); + }); + }); + } + + plugin.freezePublicAPI({ + // for testing only + fetchcache: fetchcache + }); + + register(null, { "vfs.fetchcache" : plugin }); + } +}); \ No newline at end of file From c8163f99fba48a8ca4f963ac06303a82b1f64318 Mon Sep 17 00:00:00 2001 From: c9bot Date: Thu, 1 Oct 2015 23:37:08 +0200 Subject: [PATCH 070/430] c9-auto-bump 3.0.2835 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 6aae9d6e..d9825dcb 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2834", + "version": "3.0.2835", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 550d9a35bd280a6e4ef21c7ba5534329c3b34d95 Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Thu, 1 Oct 2015 15:06:04 -0700 Subject: [PATCH 071/430] Fix resize issue for coverage viewer --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 22b25250..4c9b8e42 100644 --- a/package.json +++ b/package.json @@ -108,7 +108,7 @@ "c9.ide.save": "#e00549cb0f", "c9.ide.scm": "#2398826541", "c9.ide.terminal.monitor": "#b76f1c9f24", - "c9.ide.test": "#d55b1ee350", + "c9.ide.test": "#302388c9eb", "c9.ide.test.mocha": "#88fee23065", "c9.ide.theme.flat": "#2de8414db7", "c9.ide.threewaymerge": "#229382aa0b", From f1f24f1bc37c3fc54b847fba93e281319ed77f7d Mon Sep 17 00:00:00 2001 From: Lennart kats Date: Fri, 2 Oct 2015 08:28:35 +0000 Subject: [PATCH 072/430] Fix +9672 ugly error --- plugins/c9.vfs.client/vfs_client.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/c9.vfs.client/vfs_client.js b/plugins/c9.vfs.client/vfs_client.js index fbeb8195..f03bb749 100644 --- a/plugins/c9.vfs.client/vfs_client.js +++ b/plugins/c9.vfs.client/vfs_client.js @@ -246,6 +246,8 @@ define(function(require, exports, module) { function showVfsError(err) { switch (err.action) { case "dashboard": + if (/Permission denied \(public key/.test(err.message)) + err.message = "SSH permission denied. Please review your workspace configuration."; return showAlert("Workspace Error", "Unable to access your workspace", err.message, function() { window.location = dashboardUrl; }); From 67dba552af236a8cb4aa516b020b6ca1330758be Mon Sep 17 00:00:00 2001 From: c9bot Date: Fri, 2 Oct 2015 12:21:10 +0200 Subject: [PATCH 073/430] c9-auto-bump 3.0.2836 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d9825dcb..69605b5c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2835", + "version": "3.0.2836", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 99a991f9125bd750667721557f1ec18c0db0c00d Mon Sep 17 00:00:00 2001 From: c9bot Date: Fri, 2 Oct 2015 12:26:26 +0200 Subject: [PATCH 074/430] c9-auto-bump 3.0.2837 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 69605b5c..7540b22a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2836", + "version": "3.0.2837", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 78acde9df3365898aca848228d2f82ef91d58541 Mon Sep 17 00:00:00 2001 From: c9bot Date: Fri, 2 Oct 2015 12:40:08 +0200 Subject: [PATCH 075/430] c9-auto-bump 3.0.2838 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7540b22a..e87f3c51 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2837", + "version": "3.0.2838", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 081b7243b5645f8b95ed0cc8ab69455557c2b518 Mon Sep 17 00:00:00 2001 From: c9bot Date: Fri, 2 Oct 2015 12:47:15 +0200 Subject: [PATCH 076/430] c9-auto-bump 3.0.2839 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e87f3c51..14ecdee8 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2838", + "version": "3.0.2839", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 85ca2540a310fab736f4759cf354e5c0a314067e Mon Sep 17 00:00:00 2001 From: c9bot Date: Fri, 2 Oct 2015 13:10:31 +0200 Subject: [PATCH 077/430] c9-auto-bump 3.0.2840 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 14ecdee8..be1a7ac0 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2839", + "version": "3.0.2840", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 49bf2375da5bf97676bc7f41144338800b9dfc1e Mon Sep 17 00:00:00 2001 From: c9bot Date: Fri, 2 Oct 2015 13:12:13 +0200 Subject: [PATCH 078/430] c9-auto-bump 3.0.2841 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index be1a7ac0..9cf0776a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2840", + "version": "3.0.2841", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 279730a8599dbb93796c5f2ab13d14f56c9cf3ba Mon Sep 17 00:00:00 2001 From: c9bot Date: Fri, 2 Oct 2015 13:33:22 +0200 Subject: [PATCH 079/430] c9-auto-bump 3.0.2842 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9cf0776a..9397c50f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2841", + "version": "3.0.2842", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From aac22c5e7c32194debc1c222f89e80a28f5cd523 Mon Sep 17 00:00:00 2001 From: c9bot Date: Fri, 2 Oct 2015 13:35:06 +0200 Subject: [PATCH 080/430] c9-auto-bump 3.0.2843 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9397c50f..99be79e4 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2842", + "version": "3.0.2843", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 128971a6279e91e2f4c594e665d4af341b10c3b4 Mon Sep 17 00:00:00 2001 From: c9bot Date: Fri, 2 Oct 2015 14:41:00 +0200 Subject: [PATCH 081/430] c9-auto-bump 3.0.2844 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 99be79e4..f1672ebf 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2843", + "version": "3.0.2844", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From b8913fd355435ac76577d451dacd3aa9da74c7c2 Mon Sep 17 00:00:00 2001 From: c9bot Date: Fri, 2 Oct 2015 17:24:25 +0200 Subject: [PATCH 082/430] c9-auto-bump 3.0.2845 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f1672ebf..b704f820 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2844", + "version": "3.0.2845", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 73a9fd89b5c855a03297d09ed4c37a6ff378c217 Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Fri, 2 Oct 2015 11:12:48 -0700 Subject: [PATCH 083/430] Add support for other test formats. (incomplete) --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 83c06ae8..41f54302 100644 --- a/package.json +++ b/package.json @@ -109,7 +109,7 @@ "c9.ide.scm": "#2398826541", "c9.ide.terminal.monitor": "#b76f1c9f24", "c9.ide.test": "#302388c9eb", - "c9.ide.test.mocha": "#88fee23065", + "c9.ide.test.mocha": "#c66c6bae19", "c9.ide.theme.flat": "#2de8414db7", "c9.ide.threewaymerge": "#229382aa0b", "c9.ide.undo": "#b028bcb4d5", From 745b0cb462affa9869da02c59549a77d02890f69 Mon Sep 17 00:00:00 2001 From: nightwing Date: Sat, 3 Oct 2015 23:18:47 +0400 Subject: [PATCH 084/430] add args to Meteor.run --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b704f820..5f21e13c 100644 --- a/package.json +++ b/package.json @@ -102,7 +102,7 @@ "c9.ide.recentfiles": "#7c099abf40", "c9.ide.remote": "#301d2ab519", "c9.ide.processlist": "#2b12cd1bdd", - "c9.ide.run": "#ba97f384a6", + "c9.ide.run": "#89a02ba00a", "c9.ide.run.build": "#0598fff697", "c9.ide.run.debug.xdebug": "#61dcbd0180", "c9.ide.save": "#e00549cb0f", From 88a5c969972b80f58e3469de75194161aa1182a5 Mon Sep 17 00:00:00 2001 From: nightwing Date: Sat, 3 Oct 2015 23:26:49 +0400 Subject: [PATCH 085/430] fix misaligned file save dialog --- plugins/c9.ide.dialog.file/file.css | 1 - 1 file changed, 1 deletion(-) diff --git a/plugins/c9.ide.dialog.file/file.css b/plugins/c9.ide.dialog.file/file.css index 20957fac..3e01b387 100644 --- a/plugins/c9.ide.dialog.file/file.css +++ b/plugins/c9.ide.dialog.file/file.css @@ -26,7 +26,6 @@ font-size: 8pt; overflow: hidden; position: relative; - height: 210px; border-radius:3px; } From 9087eed58559885688ec6bcf6e79e102c3a4917f Mon Sep 17 00:00:00 2001 From: c9bot Date: Sun, 4 Oct 2015 16:20:10 +0200 Subject: [PATCH 086/430] c9-auto-bump 3.0.2846 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b704f820..03db2d61 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2845", + "version": "3.0.2846", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From f9bf3fd18b32d27e1e18c81a420aaea9208d7e1d Mon Sep 17 00:00:00 2001 From: c9bot Date: Sun, 4 Oct 2015 16:20:31 +0200 Subject: [PATCH 087/430] c9-auto-bump 3.0.2847 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 03db2d61..8a9b8720 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2846", + "version": "3.0.2847", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 812c209134d65de53290e3f5b97b1f0a074d0d3f Mon Sep 17 00:00:00 2001 From: c9bot Date: Mon, 5 Oct 2015 11:19:49 +0200 Subject: [PATCH 088/430] c9-auto-bump 3.0.2848 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8a9b8720..f582677f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2847", + "version": "3.0.2848", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From caea61a57edf43a5375ad7735db84a8db8bf782a Mon Sep 17 00:00:00 2001 From: nightwing Date: Mon, 5 Oct 2015 13:22:30 +0400 Subject: [PATCH 089/430] fix workspace list in local version --- configs/client-default-local.js | 11 +++++-- local/index.html | 4 +-- local/server.js | 50 +++-------------------------- node_modules/architect/architect.js | 4 ++- package.json | 2 +- 5 files changed, 20 insertions(+), 51 deletions(-) diff --git a/configs/client-default-local.js b/configs/client-default-local.js index 33361ca7..ff27686b 100644 --- a/configs/client-default-local.js +++ b/configs/client-default-local.js @@ -84,6 +84,9 @@ module.exports.makeLocal = function(config, options) { config[i].autoInit = false; } else if (config[i].packagePath == "plugins/c9.ide.tree/tree") { config[i].defaultExpanded = !config.hosted; + } else if (config[i].packagePath == "plugins/c9.ide.errorhandler/raygun_error_handler") { + // TODO fix cycle introduced by local/info and raygun_error_handler + config[i].packagePath = "plugins/c9.ide.errorhandler/simple_error_handler"; } } @@ -127,9 +130,13 @@ module.exports.makeLocal = function(config, options) { contents: options.project.contents, descr: options.project.descr } - }].filter(Boolean); + }, + c9Ws && "plugins/c9.ide.analytics/mock_analytics", + ].filter(Boolean); - var excludes = c9Ws ? {} : { + var excludes = c9Ws ? { + "plugins/c9.ide.analytics/analytics": true, + } : { "plugins/c9.ide.newresource/open": true, "plugins/c9.ide.info/info": true, // "plugins/c9.ide.login/login": true, diff --git a/local/index.html b/local/index.html index a5fd00b3..08375f35 100644 --- a/local/index.html +++ b/local/index.html @@ -271,7 +271,7 @@ function loadRequireJsConfig(cb) { var requirejs = window.requirejs; window.require = requirejs; - requirejs.setConfig = requirejs.config; + requirejs.setConfig = requirejs.setConfig || requirejs.config; requirejs.config = function(config) { config.baseUrl = requirejsBaseUrl + (config.baseUrl || ""); if (config.paths) { @@ -293,7 +293,7 @@ require.packaged = true; if (!packed || devel) { packageIsLoading = true; - loadScript("plugins/c9.vfs.standalone/www/require.js", function() { + loadScript("node_modules/architect-build/build_support/mini_require.js", function() { removeNwRequire(); startIde(); packageIsLoading = false; diff --git a/local/server.js b/local/server.js index 9598972f..206a0fe3 100644 --- a/local/server.js +++ b/local/server.js @@ -361,7 +361,7 @@ var server = { } } - if (p.staticPrefix && options.windowLocation && options.packed) { + if (p.staticPrefix && options.windowLocation && (options.packed || isRemote)) { p.staticPrefix = p.staticPrefix.replace(/^\/static/, options.windowLocation); } } @@ -392,6 +392,10 @@ var server = { plugins = require(configPath).makeLocal(config.plugins, settings); settings.url = config.url; } + plugins.forEach(function(p) { + if (p.staticPrefix) + p.staticPrefix = p.staticPrefix.replace(/^https?:\/\/.*?\/static/, "/static"); + }) updateFilePaths(plugins, function(){ cb(plugins, settings); }); @@ -415,7 +419,6 @@ var server = { openWindow : openWindow, parseArgs : parseArgs, getRecentWindows: getRecentWindows, - listC9Projects: listC9Projects, getRemoteWorkspaceConfig: getRemoteWorkspaceConfig }; @@ -1023,49 +1026,6 @@ function loadData(url, callback) { xhr.send(""); } -// TODO add proper api to c9 server -function listC9Projects(user, callback) { - if (!user) - return callback(null, []); - - var url = "https://c9.io/" + user.name; - loadData(url, function(err, result) { - if (err) return callback(err); - var ownProjects = []; - var sharedProjects = []; - try { - var pids = Object.create(null); - JSON.parse(result.match(/projects:\s*(.*),/)[1]).forEach(function(x) { - var userName = x.owner_username || user.name; - - var project = { - name: userName + "/" + x.name, - projectName: x.name, - pid: x.pid, - isRemote: true, - }; - - if (pids[project.pid]) - return; - - pids[project.pid] = project; - - if (userName == user.name) - ownProjects.push(project); - else - sharedProjects.push(project); - }); - } catch(e) { - console.error(e); - return callback(e); - } - callback(null, { - shared: sharedProjects, - own: ownProjects - }); - }); -} - function getRemoteWorkspaceConfig(projectName, callback) { var url = "https://ide.c9.io/" + projectName + "?config=1"; loadData(url, function(err, result, xhr) { diff --git a/node_modules/architect/architect.js b/node_modules/architect/architect.js index 9b2d602a..59d552b2 100644 --- a/node_modules/architect/architect.js +++ b/node_modules/architect/architect.js @@ -406,7 +406,9 @@ function checkCycles(config, lookup) { "\nMissing services:\n" + unresolvedList.join("\n") + "\n", unresolved, "\nResolved services:", Object.keys(resolved)); var err = new Error("Could not resolve dependencies\n" - + "Missing services: " + unresolvedList); + + (unresolvedList.length ? "Missing services: " + unresolvedList + : "Config contains cyclic dependencies" // TODO print cycles + )); err.unresolved = unresolvedList; throw err; } diff --git a/package.json b/package.json index 5f21e13c..99cc3ba8 100644 --- a/package.json +++ b/package.json @@ -67,7 +67,7 @@ "c9.ide.language.javascript.infer": "#8478e3c702", "c9.ide.language.jsonalyzer": "#d44cb13695", "c9.ide.collab": "#a8e597ae5e", - "c9.ide.local": "#a9703b630c", + "c9.ide.local": "#a6e689e33b", "c9.ide.find": "#35379124ca", "c9.ide.find.infiles": "#c132ad243c", "c9.ide.find.replace": "#44772dd796", From 8097c2428d91c8c1ff0a6d2f4d86800d0d42b7ff Mon Sep 17 00:00:00 2001 From: c9bot Date: Mon, 5 Oct 2015 11:54:05 +0200 Subject: [PATCH 090/430] c9-auto-bump 3.0.2849 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f582677f..d41fec3b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2848", + "version": "3.0.2849", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From a8f85c258c77b5b92482ac3403b613b63814d108 Mon Sep 17 00:00:00 2001 From: c9bot Date: Mon, 5 Oct 2015 13:53:53 +0200 Subject: [PATCH 091/430] c9-auto-bump 3.0.2850 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d41fec3b..697f9841 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2849", + "version": "3.0.2850", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From d9982faa97e2936a7bdb169f5dad51798d46ca62 Mon Sep 17 00:00:00 2001 From: c9bot Date: Mon, 5 Oct 2015 15:51:15 +0200 Subject: [PATCH 092/430] c9-auto-bump 3.0.2851 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 697f9841..00929693 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2850", + "version": "3.0.2851", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 1d7cab3a3c99d39baeda2f276f985210603e7141 Mon Sep 17 00:00:00 2001 From: Fabian Jakobs Date: Mon, 5 Oct 2015 14:40:27 +0000 Subject: [PATCH 093/430] white list error keys fixes https://trello.com/c/UpvPmchx/5-workspace-creation-shows-hibernate-or-migrate-screen --- plugins/c9.error/error_handler.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/plugins/c9.error/error_handler.js b/plugins/c9.error/error_handler.js index f2b8024a..fc2edd7d 100644 --- a/plugins/c9.error/error_handler.js +++ b/plugins/c9.error/error_handler.js @@ -118,8 +118,18 @@ function plugin(options, imports, register) { message: err.message, hostname: options.hostname, scope: options.scope, - stack: stack, + stack: stack }; + + var allowedErrorKeys = [ + "message", "projectState", "premium", "retryIn", "progress", + "oldHost", "blocked" + ]; + + allowedErrorKeys.forEach(function(key) { + if (err.hasOwnProperty(key)) + error[key] = err[key]; + }); try { JSON.stringify(error); From 32af0fdb7b2b6dccfa974acb6dc46f44f9f2068d Mon Sep 17 00:00:00 2001 From: Fabian Jakobs Date: Mon, 5 Oct 2015 14:43:31 +0000 Subject: [PATCH 094/430] cleanup --- plugins/c9.error/error_handler.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/c9.error/error_handler.js b/plugins/c9.error/error_handler.js index fc2edd7d..29f4a9d4 100644 --- a/plugins/c9.error/error_handler.js +++ b/plugins/c9.error/error_handler.js @@ -115,14 +115,13 @@ function plugin(options, imports, register) { if (/json/.test(accept)) { var error = { code: statusCode, - message: err.message, hostname: options.hostname, scope: options.scope, stack: stack }; var allowedErrorKeys = [ - "message", "projectState", "premium", "retryIn", "progress", + "message", "projectState", "premium", "retryIn", "progress", "oldHost", "blocked" ]; From 8716ab14720ea0de8a28fe9cb5853cf4d562cb06 Mon Sep 17 00:00:00 2001 From: c9bot Date: Mon, 5 Oct 2015 16:55:22 +0200 Subject: [PATCH 095/430] c9-auto-bump 3.0.2852 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 00929693..68227d83 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2851", + "version": "3.0.2852", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 39aef6a34c66f8394dc9a3877b8f2b95f34ad0a8 Mon Sep 17 00:00:00 2001 From: c9bot Date: Mon, 5 Oct 2015 16:56:57 +0200 Subject: [PATCH 096/430] c9-auto-bump 3.0.2853 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 68227d83..617b4da6 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2852", + "version": "3.0.2853", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From ec8885d05379e4653619fdd6a59514b8725a3f46 Mon Sep 17 00:00:00 2001 From: Fabian Jakobs Date: Mon, 5 Oct 2015 15:01:06 +0000 Subject: [PATCH 097/430] add unit test --- plugins/c9.error/error_handler_test.js | 91 ++++++++++++++++++++++++++ 1 file changed, 91 insertions(+) create mode 100644 plugins/c9.error/error_handler_test.js diff --git a/plugins/c9.error/error_handler_test.js b/plugins/c9.error/error_handler_test.js new file mode 100644 index 00000000..dea480db --- /dev/null +++ b/plugins/c9.error/error_handler_test.js @@ -0,0 +1,91 @@ +#!/usr/bin/env node +/*global describe it before after beforeEach afterEach */ +"use strict"; +"use server"; + +require("c9/inline-mocha")(module); +require("amd-loader"); + +var assert = require("assert-diff"); +var sinon = require("sinon"); +var error = require("http-error"); + +var errorHandlerPlugin = require("./error_handler"); + +describe(__filename, function(){ + this.timeout(2000); + + var errorHandler; + var imports; + var options = { + scope: "ide", + hostname: "fabian-dev" + }; + + beforeEach(function(done) { + imports = { + connect: { + useError: sinon.stub(), + useStart: sinon.stub() + }, + "connect.static": { + addStatics: sinon.stub() + } + }; + errorHandlerPlugin(options, imports, function(err, services) { + errorHandler = imports.connect.useError.lastCall.args[0]; + done(err); + }); + }); + + afterEach(function () { + }); + + it("should only pass white listed keys", function(done) { + var err = new error.PreconditionRequired("Resizing workspace; please retry later"); + err.projectState = 1; + err.premium = true; + err.retryIn = 2000; + err.progress = { + progress: 0, + nextProgress: 0 + }; + err.FOO = "not me"; + + var req = { + headers: { + accept: "application/json" + } + }; + + var res = { + json: function(err, body, code) { + assert(!body); + assert.equal(code, 428); + assert.deepEqual(err, { + error: { + code: 428, + hostname: "fabian-dev", + scope: "ide", + stack: undefined, + message: "Resizing workspace; please retry later", + projectState: 1, + premium: true, + retryIn: 2000, + progress: { + progress: 0, + nextProgress: 0 + } + } + }); + done(); + } + }; + + errorHandler(err, req, res, function() { + assert.fail(); + done(); + }); + }); + +}); \ No newline at end of file From 17e54b954a79211fe0020936c47f32fb574c5f12 Mon Sep 17 00:00:00 2001 From: c9bot Date: Mon, 5 Oct 2015 17:28:21 +0200 Subject: [PATCH 098/430] c9-auto-bump 3.0.2854 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 617b4da6..9da6a3d7 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2853", + "version": "3.0.2854", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 274c4062baba80376e67f9b3425f8f8f3ff7004e Mon Sep 17 00:00:00 2001 From: c9bot Date: Mon, 5 Oct 2015 20:12:57 +0200 Subject: [PATCH 099/430] c9-auto-bump 3.0.2855 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 939c8432..54edaa8c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2854", + "version": "3.0.2855", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From faf6e3ec083f99868efa6d0fefbe817b465157a4 Mon Sep 17 00:00:00 2001 From: nightwing Date: Mon, 5 Oct 2015 23:20:03 +0400 Subject: [PATCH 100/430] add :wa and :sort vim commands --- package.json | 2 +- plugins/c9.ide.ace/ace.js | 4 ++-- plugins/c9.ide.keys/commands.js | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 54edaa8c..c55b0333 100644 --- a/package.json +++ b/package.json @@ -75,7 +75,7 @@ "c9.automate": "#47e2c429c9", "c9.ide.ace.emmet": "#6dc4585e02", "c9.ide.ace.gotoline": "#a8ff07c8f4", - "c9.ide.ace.keymaps": "#bf6d36213f", + "c9.ide.ace.keymaps": "#2e3c6e3c8f", "c9.ide.ace.repl": "#7989bbd07f", "c9.ide.ace.split": "#0ae0151c78", "c9.ide.ace.statusbar": "#d95be89d53", diff --git a/plugins/c9.ide.ace/ace.js b/plugins/c9.ide.ace/ace.js index 5a1747ae..27275599 100644 --- a/plugins/c9.ide.ace/ace.js +++ b/plugins/c9.ide.ace/ace.js @@ -618,8 +618,8 @@ define(function(require, exports, module) { return isAvailable ? isAvailable(editor.ace) : true; }; - command.findEditor = function(editor) { - if (apf.activeElement && apf.activeElement.ace && apf.activeElement.ace.isFocused()) + command.findEditor = function(editor, e) { + if (e && apf.activeElement && apf.activeElement.ace && apf.activeElement.ace.isFocused()) return apf.activeElement.ace; return editor && editor.ace || editor; }; diff --git a/plugins/c9.ide.keys/commands.js b/plugins/c9.ide.keys/commands.js index 90f73771..b95d6d6c 100644 --- a/plugins/c9.ide.keys/commands.js +++ b/plugins/c9.ide.keys/commands.js @@ -127,10 +127,10 @@ define(function(require, exports, module) { } if (command.isAvailable && !command.isAvailable(editor, args, e)) - return; //Disable commands for other contexts + return; // Disable commands for other contexts if (command.findEditor) - editor = command.findEditor(editor); + editor = command.findEditor(editor, e); if (editor && editor.$readOnly && !command.readOnly) return false; From 3b4a68972f087fc5e6e8a9b6edd1c32bc031b799 Mon Sep 17 00:00:00 2001 From: c9bot Date: Mon, 5 Oct 2015 22:54:42 +0200 Subject: [PATCH 101/430] c9-auto-bump 3.0.2856 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 54edaa8c..e6724cb7 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2855", + "version": "3.0.2856", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From b3659df75b1afe28532ca0bd99c28500bbad4a96 Mon Sep 17 00:00:00 2001 From: c9bot Date: Wed, 7 Oct 2015 12:38:11 +0200 Subject: [PATCH 102/430] c9-auto-bump 3.0.2857 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e6724cb7..6d0374a2 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2856", + "version": "3.0.2857", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 61d9b373cda71a077b56cc313f4cafd20adc048d Mon Sep 17 00:00:00 2001 From: c9bot Date: Wed, 7 Oct 2015 12:39:44 +0200 Subject: [PATCH 103/430] c9-auto-bump 3.0.2858 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 6d0374a2..f83c3798 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2857", + "version": "3.0.2858", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 098e398fe35c94db7f5bdc63280be605168aa9ab Mon Sep 17 00:00:00 2001 From: c9bot Date: Wed, 7 Oct 2015 12:45:59 +0200 Subject: [PATCH 104/430] c9-auto-bump 3.0.2859 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f83c3798..450fddeb 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2858", + "version": "3.0.2859", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 6f57552668a98b09c01854f68a1715620dca467a Mon Sep 17 00:00:00 2001 From: c9bot Date: Wed, 7 Oct 2015 12:46:54 +0200 Subject: [PATCH 105/430] c9-auto-bump 3.0.2860 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 450fddeb..66a686f0 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2859", + "version": "3.0.2860", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From a8d220c3adb925d4912f886b19b755f37a879a7c Mon Sep 17 00:00:00 2001 From: c9bot Date: Wed, 7 Oct 2015 13:02:08 +0200 Subject: [PATCH 106/430] c9-auto-bump 3.0.2861 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 66a686f0..cce76387 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2860", + "version": "3.0.2861", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 871bf3c4ae0bdaabb59226e695b3a0b5f5534a75 Mon Sep 17 00:00:00 2001 From: c9bot Date: Wed, 7 Oct 2015 15:19:25 +0200 Subject: [PATCH 107/430] c9-auto-bump 3.0.2862 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index cce76387..f40e96cf 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2861", + "version": "3.0.2862", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 4ab85fee23ad107217fc4cb796cf5e608beede0d Mon Sep 17 00:00:00 2001 From: c9bot Date: Wed, 7 Oct 2015 17:15:25 +0200 Subject: [PATCH 108/430] c9-auto-bump 3.0.2863 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f40e96cf..99053312 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2862", + "version": "3.0.2863", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From d13ce591376a02580adde4bb2471a48f4b6f3c8f Mon Sep 17 00:00:00 2001 From: c9bot Date: Wed, 7 Oct 2015 17:20:34 +0200 Subject: [PATCH 109/430] c9-auto-bump 3.0.2864 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 99053312..7542b4d7 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2863", + "version": "3.0.2864", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 218761c5da1aa24f01354fbc9f070e7a30a9931e Mon Sep 17 00:00:00 2001 From: c9bot Date: Wed, 7 Oct 2015 17:44:33 +0200 Subject: [PATCH 110/430] c9-auto-bump 3.0.2865 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7542b4d7..5d633f1e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2864", + "version": "3.0.2865", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From c71e26912d34c3e82fbdc70a368ae4ce371d1c91 Mon Sep 17 00:00:00 2001 From: c9bot Date: Wed, 7 Oct 2015 17:52:20 +0200 Subject: [PATCH 111/430] c9-auto-bump 3.0.2866 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 5d633f1e..af4bba8e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2865", + "version": "3.0.2866", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 3469cc92f3c921fdb8583a0db8ca417d4599dc9b Mon Sep 17 00:00:00 2001 From: c9bot Date: Wed, 7 Oct 2015 17:52:56 +0200 Subject: [PATCH 112/430] c9-auto-bump 3.0.2867 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index af4bba8e..73705573 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2866", + "version": "3.0.2867", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 2c888dac10a255229c30f3a4f9e9649fc50998f0 Mon Sep 17 00:00:00 2001 From: Arron Bailiss Date: Wed, 7 Oct 2015 19:04:32 +0000 Subject: [PATCH 113/430] Add Suraj to IDE credits --- plugins/c9.ide.help/help.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/c9.ide.help/help.xml b/plugins/c9.ide.help/help.xml index 99a8d7b6..f4cd6c88 100644 --- a/plugins/c9.ide.help/help.xml +++ b/plugins/c9.ide.help/help.xml @@ -23,7 +23,7 @@

Arron Bailiss, Bas de Wachter, Dana Ivan, Fabian Jakobs, Harutyun Amirjanyan, Ivar Pruijn, Justin Dray, Lennart Kats, Luca Cipriani, - Mostafa Eweda, Matthijs van Henten, Nikolai Onken, Tim Robinson, Ruben Daniels + Mostafa Eweda, Matthijs van Henten, Nikolai Onken, Suraj Biyani, Tim Robinson, Ruben Daniels

From a5b80bb891d8b09982f86d031b1e8dd869c586d1 Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Wed, 7 Oct 2015 14:40:06 -0700 Subject: [PATCH 114/430] Add other types of tests to mocha --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 41f54302..f7b9ee20 100644 --- a/package.json +++ b/package.json @@ -109,7 +109,7 @@ "c9.ide.scm": "#2398826541", "c9.ide.terminal.monitor": "#b76f1c9f24", "c9.ide.test": "#302388c9eb", - "c9.ide.test.mocha": "#c66c6bae19", + "c9.ide.test.mocha": "#c81861817e", "c9.ide.theme.flat": "#2de8414db7", "c9.ide.threewaymerge": "#229382aa0b", "c9.ide.undo": "#b028bcb4d5", From 3fdc12ff64fa8052d689e93da9c79c3eaec454b6 Mon Sep 17 00:00:00 2001 From: c9bot Date: Thu, 8 Oct 2015 16:06:21 +0200 Subject: [PATCH 115/430] c9-auto-bump 3.0.2868 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index df30f2b1..286da366 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2867", + "version": "3.0.2868", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From d95502db64fada97338ba77f0e880f8a729e0e71 Mon Sep 17 00:00:00 2001 From: c9bot Date: Thu, 8 Oct 2015 16:47:21 +0200 Subject: [PATCH 116/430] c9-auto-bump 3.0.2869 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 286da366..81c9a03d 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2868", + "version": "3.0.2869", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 3cfac5f3f28af4948a7d58e218ab4ba435efa74b Mon Sep 17 00:00:00 2001 From: Tim Robinson Date: Thu, 8 Oct 2015 14:49:13 +0000 Subject: [PATCH 117/430] noop to test newclient bump --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 71a8e5d8..ae89a8aa 100644 --- a/README.md +++ b/README.md @@ -91,4 +91,4 @@ To protect the interests of the Cloud9 contributors and users we require contrib If you want to contribute to the Cloud9 SDK and/or open source plugins please go to the online form, fill it out and submit it. -Happy coding, Cloud9 +Happy coding, Cloud9 \ No newline at end of file From a8fc4d2e92a23ab780de5b2f32b5a78ad8f83c7c Mon Sep 17 00:00:00 2001 From: c9bot Date: Thu, 8 Oct 2015 16:49:35 +0200 Subject: [PATCH 118/430] c9-auto-bump 3.0.2870 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 81c9a03d..fdb00f7a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2869", + "version": "3.0.2870", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From c3c2c18d47fafcfc516b1b8ca022913a891055fc Mon Sep 17 00:00:00 2001 From: c9bot Date: Thu, 8 Oct 2015 17:24:37 +0200 Subject: [PATCH 119/430] c9-auto-bump 3.0.2871 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index fdb00f7a..1aeb4103 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2870", + "version": "3.0.2871", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 64c820a8d0ff424b010fb0c7fbb5af9a606736a3 Mon Sep 17 00:00:00 2001 From: nightwing Date: Thu, 8 Oct 2015 22:18:39 +0400 Subject: [PATCH 120/430] fix nak in desktop version --- settings/local.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/settings/local.js b/settings/local.js index a04636db..c0244bf7 100644 --- a/settings/local.js +++ b/settings/local.js @@ -47,9 +47,9 @@ module.exports = function(manifest, installPath, settingDir) { // config.update.port = "8888" // config.update.host = "http" - config.nodeBin = [process.platform == "win32" - ? path.join(process.execPath, "..\\node.exe") - : path.join(installPath, "node/bin/node")]; + // config.nodeBin = [process.platform == "win32" + // ? path.join(process.execPath, "..\\node.exe") + // : path.join(installPath, "node/bin/node")]; config.bashBin = process.platform == "win32" ? process.env.C9_BASH_BIN || "C:\\cygwin\\bin\\bash.exe" : "/bin/bash"; From ba37d7a164773e565be5564b1a4e543f63b9036f Mon Sep 17 00:00:00 2001 From: c9bot Date: Thu, 8 Oct 2015 20:47:51 +0200 Subject: [PATCH 121/430] c9-auto-bump 3.0.2872 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1aeb4103..1ba897ab 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2871", + "version": "3.0.2872", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 8f36832df02983e21f70ce47d3f6f2327964049a Mon Sep 17 00:00:00 2001 From: nightwing Date: Fri, 9 Oct 2015 00:05:23 +0400 Subject: [PATCH 122/430] fix require.undef for resources loaded via `text!` --- .../architect-build/build_support/mini_require.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/node_modules/architect-build/build_support/mini_require.js b/node_modules/architect-build/build_support/mini_require.js index 6e643a35..45407316 100644 --- a/node_modules/architect-build/build_support/mini_require.js +++ b/node_modules/architect-build/build_support/mini_require.js @@ -299,8 +299,17 @@ require.undef = function(module, recursive) { function undefAll(module, hash) { Object.keys(hash).forEach(function(key) { + var i = key.indexOf("!") + 1; if (key.lastIndexOf(module, 0) == 0) require.undef(key); + if (i) { + var plugin = key.slice(0, i - 1); + var resource = key.slice(i); + if (resource.lastIndexOf(module, 0) == 0 || plugin.lastIndexOf(module, 0) == 0) { + require.undef(key); + require.undef(resource); + } + } }); } From d2d3761d127b862604fad3cf58d75258913cd4f5 Mon Sep 17 00:00:00 2001 From: c9bot Date: Fri, 9 Oct 2015 00:10:46 +0200 Subject: [PATCH 123/430] c9-auto-bump 3.0.2873 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1ba897ab..e8c34931 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2872", + "version": "3.0.2873", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 86ee3d79fbc8ec124c19509faa15c75e1d41341d Mon Sep 17 00:00:00 2001 From: c9bot Date: Fri, 9 Oct 2015 09:14:19 +0200 Subject: [PATCH 124/430] c9-auto-bump 3.0.2874 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e8c34931..a9b011f4 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2873", + "version": "3.0.2874", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From b7e10d96a727d5fe8ee9f87be6ec854e4870a9ce Mon Sep 17 00:00:00 2001 From: c9bot Date: Fri, 9 Oct 2015 09:21:02 +0200 Subject: [PATCH 125/430] c9-auto-bump 3.0.2875 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a9b011f4..602354e3 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2874", + "version": "3.0.2875", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 5dcc958b464c11701bd9325209b72a5242360794 Mon Sep 17 00:00:00 2001 From: c9bot Date: Fri, 9 Oct 2015 11:48:58 +0200 Subject: [PATCH 126/430] c9-auto-bump 3.0.2876 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 602354e3..4913472e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2875", + "version": "3.0.2876", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 5f84f76676495eac75b11ab4ea879356da693334 Mon Sep 17 00:00:00 2001 From: c9bot Date: Fri, 9 Oct 2015 12:14:39 +0200 Subject: [PATCH 127/430] c9-auto-bump 3.0.2877 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4913472e..b91e9cca 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2876", + "version": "3.0.2877", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From daa6703d88f1fdfbbe08388ff198aac9f81dbe2f Mon Sep 17 00:00:00 2001 From: c9bot Date: Fri, 9 Oct 2015 12:24:27 +0200 Subject: [PATCH 128/430] c9-auto-bump 3.0.2878 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b91e9cca..0d380f5b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2877", + "version": "3.0.2878", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 91bc1e530a06d18bc8d6315981efab4709d7c682 Mon Sep 17 00:00:00 2001 From: c9bot Date: Fri, 9 Oct 2015 13:12:24 +0200 Subject: [PATCH 129/430] c9-auto-bump 3.0.2879 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0d380f5b..9ff4a13e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2878", + "version": "3.0.2879", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From ff3373cf45e7a44ed805c67367c42fd94f9d3ece Mon Sep 17 00:00:00 2001 From: c9bot Date: Fri, 9 Oct 2015 14:43:59 +0200 Subject: [PATCH 130/430] c9-auto-bump 3.0.2880 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9ff4a13e..b177dc35 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2879", + "version": "3.0.2880", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 8b7c6c3f895b5f94ea871cde606ee95c7b33e201 Mon Sep 17 00:00:00 2001 From: c9bot Date: Fri, 9 Oct 2015 14:52:21 +0200 Subject: [PATCH 131/430] c9-auto-bump 3.0.2881 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b177dc35..b33935ad 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2880", + "version": "3.0.2881", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 7bdb26b891b5cfca65104fe0fc4a786d0abe536e Mon Sep 17 00:00:00 2001 From: c9bot Date: Fri, 9 Oct 2015 15:26:12 +0200 Subject: [PATCH 132/430] c9-auto-bump 3.0.2882 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b33935ad..f5fb8308 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2881", + "version": "3.0.2882", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 509a3732dc33c6cc6dc0e2cd83bc07636bfb332e Mon Sep 17 00:00:00 2001 From: c9bot Date: Sat, 10 Oct 2015 23:19:23 +0200 Subject: [PATCH 133/430] c9-auto-bump 3.0.2883 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f5fb8308..22746557 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2882", + "version": "3.0.2883", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 9fb9ea7763592566b5cb15b3d1e867c3b30a9b96 Mon Sep 17 00:00:00 2001 From: c9bot Date: Sun, 11 Oct 2015 19:07:16 +0200 Subject: [PATCH 134/430] c9-auto-bump 3.0.2884 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 22746557..d729652f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2883", + "version": "3.0.2884", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 0b84aed75bc58fed4ddb1a10e0b7bde7a238efd6 Mon Sep 17 00:00:00 2001 From: c9bot Date: Sun, 11 Oct 2015 22:01:52 +0200 Subject: [PATCH 135/430] c9-auto-bump 3.0.2885 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d729652f..d8f2e86d 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2884", + "version": "3.0.2885", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From a1a25a255c61a52da72859d93bf9f5d15017be04 Mon Sep 17 00:00:00 2001 From: c9bot Date: Mon, 12 Oct 2015 00:40:10 +0200 Subject: [PATCH 136/430] c9-auto-bump 3.0.2886 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d8f2e86d..29b14f4b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2885", + "version": "3.0.2886", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From ebf4b2e874b9c964f62ca4f5db4f1b0ec03871a4 Mon Sep 17 00:00:00 2001 From: c9bot Date: Mon, 12 Oct 2015 12:28:42 +0200 Subject: [PATCH 137/430] c9-auto-bump 3.0.2887 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 29b14f4b..d2318332 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2886", + "version": "3.0.2887", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From f4d5b74d84d5dd552e918d8ba546254b998a97df Mon Sep 17 00:00:00 2001 From: c9bot Date: Mon, 12 Oct 2015 12:56:55 +0200 Subject: [PATCH 138/430] c9-auto-bump 3.0.2888 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d2318332..392d7fbb 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2887", + "version": "3.0.2888", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 686e2456d20048768ecfa9080d4905191173a95a Mon Sep 17 00:00:00 2001 From: c9bot Date: Mon, 12 Oct 2015 13:40:15 +0200 Subject: [PATCH 139/430] c9-auto-bump 3.0.2889 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 392d7fbb..330cab36 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2888", + "version": "3.0.2889", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From f6fab2629a7129ba64c5e0cf3abe9566d381a9e9 Mon Sep 17 00:00:00 2001 From: c9bot Date: Mon, 12 Oct 2015 14:13:16 +0200 Subject: [PATCH 140/430] c9-auto-bump 3.0.2890 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 330cab36..7a384755 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2889", + "version": "3.0.2890", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 27eaa5add5ddfc97053afe41fb44c1116c36addb Mon Sep 17 00:00:00 2001 From: Fabian Jakobs Date: Mon, 12 Oct 2015 12:22:25 +0000 Subject: [PATCH 141/430] implement new user content auth for preview --- plugins/c9.preview/preview.handler.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/plugins/c9.preview/preview.handler.js b/plugins/c9.preview/preview.handler.js index d59b24bd..3bf1f351 100644 --- a/plugins/c9.preview/preview.handler.js +++ b/plugins/c9.preview/preview.handler.js @@ -39,7 +39,13 @@ define(function(require, exports, module) { session.ws = {}; req.projectSession = session.ws[ws]; - if (!req.projectSession || !req.projectSession.expires || req.projectSession.expires <= Date.now()) { + + if ( + !req.projectSession || + !req.projectSession.expires || + req.projectSession.expires <= Date.now() || + req.projectSession.uid != req.user.id + ) { req.projectSession = session.ws[ws] = { expires: Date.now() + 10000 }; @@ -77,6 +83,7 @@ define(function(require, exports, module) { } req.projectSession.role = role; req.projectSession.pid = project.id; + req.projectSession.uid = req.user.id; var type = project.scm; req.projectSession.type = type; @@ -137,8 +144,8 @@ define(function(require, exports, module) { var path = req.params.path; var url = req.proxyUrl + path; - if (req.session.token) - url += "?access_token=" + encodeURIComponent(req.session.token.id || req.session.token); + if (req.user.code) + url += "?access_token=" + encodeURIComponent(req.user.code); var parsedUrl = parseUrl(url); var httpModule = parsedUrl.protocol == "https:" ? https : http; From fedde93fa594e7cca1d5c8d9f9a710bc9421684f Mon Sep 17 00:00:00 2001 From: nightwing Date: Mon, 12 Oct 2015 17:01:46 +0400 Subject: [PATCH 142/430] fix infinite loop in undoing renaming of /x/x to /x --- plugins/c9.fs/fs.cache.xml.js | 55 +++++++++++++++++++---------------- 1 file changed, 30 insertions(+), 25 deletions(-) diff --git a/plugins/c9.fs/fs.cache.xml.js b/plugins/c9.fs/fs.cache.xml.js index 3aade7a0..dda745dd 100644 --- a/plugins/c9.fs/fs.cache.xml.js +++ b/plugins/c9.fs/fs.cache.xml.js @@ -292,29 +292,33 @@ define(function(require, exports, module) { // Validation var toNode = findNode(newPath); - if (parent) { // Dir is in cache - if (toNode) - deleteNode(toNode); + deleteNode(node, true); + if (toNode) + deleteNode(toNode, true); - createNode(newPath, null, node); // Move node - recurPathUpdate(node, oldPath, newPath); + createNode(newPath, null, node); // Move node + recurPathUpdate(node, oldPath, newPath); + + e.undo = function(){ + if (!parent) { + var tmpParent = node; + while (node.parent && tmpParent.parent.status == "pending") + tmpParent = tmpParent.parent; + if (tmpParent) + deleteNode(tmpParent, true); + } + deleteNode(node, true); + if (toNode) + createNode(newPath, null, toNode); - e.undo = function(){ - createNode(oldPath, null, node); - recurPathUpdate(node, newPath, oldPath); - - if (toNode) - createNode(newPath, null, toNode); - }; - e.confirm = function() { - if (node.status === "predicted") - node.status = "loaded"; - }; - node.status = "predicted"; - } - else { - removeSingleNode(e); - } + createNode(oldPath, null, node); + recurPathUpdate(node, newPath, oldPath); + }; + e.confirm = function() { + if (node.status === "predicted") + node.status = "loaded"; + }; + node.status = "predicted"; }, plugin); fs.on("afterRename", afterHandler, plugin); @@ -553,10 +557,6 @@ define(function(require, exports, module) { node.status = "loaded"; } - if (isFolder && !node.map) - node.map = {}; - else if (!isFolder && node.map) - delete node.map; if (stat.size != undefined) node.size = stat.size; if (stat.mtime != undefined) @@ -566,6 +566,11 @@ define(function(require, exports, module) { node.isFolder = isFolder; } + if (node.isFolder && !node.map) + node.map = {}; + else if (!node.isFolder && node.map) + delete node.map; + node.children = null; if (!updating) { From 86b106f73742ba508ac747344ef6bd0f896c2b1a Mon Sep 17 00:00:00 2001 From: nightwing Date: Mon, 12 Oct 2015 18:14:05 +0400 Subject: [PATCH 143/430] fix configure when ~ and workspace dirs are the same --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7a384755..b5c70a65 100644 --- a/package.json +++ b/package.json @@ -82,7 +82,7 @@ "c9.ide.ace.stripws": "#cf0f42ac59", "c9.ide.behaviors": "#e2c7f68242", "c9.ide.closeconfirmation": "#cee4674141", - "c9.ide.configuration": "#382b61f4ab", + "c9.ide.configuration": "#a9066299a2", "c9.ide.dialog.wizard": "#7667ec79a8", "c9.ide.fontawesome": "#781602c5d8", "c9.ide.format": "#b0bb91a623", From fac2e66d39e9005ed4f52092ba6399046819d033 Mon Sep 17 00:00:00 2001 From: nightwing Date: Mon, 12 Oct 2015 18:19:55 +0400 Subject: [PATCH 144/430] report proper error in c9 publish if readme is missing --- plugins/c9.cli.publish/publish.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/plugins/c9.cli.publish/publish.js b/plugins/c9.cli.publish/publish.js index 9d11b867..81cb6459 100644 --- a/plugins/c9.cli.publish/publish.js +++ b/plugins/c9.cli.publish/publish.js @@ -267,19 +267,21 @@ define(function(require, exports, module) { if (!json.categories || json.categories.length == 0) return callback(new Error("ERROR: At least one category is required in package.json")); + var description = json.description; + + if (description) + console.warn("WARNING: Description property in package.json will be ignored. README.md will be used."); + // Validate README.md - if (!fs.existsSync(join(cwd, "README.md"))) { + if (fs.existsSync(join(cwd, "README.md"))) { + description = fs.readFileSync(join(cwd, "README.md"), "utf8") + .replace(/^\#.*\n*/, ""); + } else { console.warn("WARNING: README.md is missing."); if (!force) return callback(new Error("Use --force to ignore these warnings.")); } - if (json.description) - console.warn("WARNING: Description property in package.json will be ignored. README.md will be used."); - - var description = fs.readFileSync(join(cwd, "README.md"), "utf8") - .replace(/^\#.*\n*/, ""); - // Validate plugins var plugins = {}; From e6a1ee309d9476930b2602cdbfb7aa81da01dd2f Mon Sep 17 00:00:00 2001 From: nightwing Date: Mon, 12 Oct 2015 18:23:24 +0400 Subject: [PATCH 145/430] fix errors when opening hosted config from standalone --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b5c70a65..07111ba2 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,7 @@ "c9.ide.language.javascript.eslint": "#df7e424b54", "c9.ide.language.javascript.tern": "#40cf04bded", "c9.ide.language.javascript.infer": "#8478e3c702", - "c9.ide.language.jsonalyzer": "#d44cb13695", + "c9.ide.language.jsonalyzer": "#8401c240b3", "c9.ide.collab": "#a8e597ae5e", "c9.ide.local": "#a6e689e33b", "c9.ide.find": "#35379124ca", From de19e8c334e1cd68a9d5c29ab683bb90bfb7c196 Mon Sep 17 00:00:00 2001 From: Bas Date: Mon, 12 Oct 2015 23:57:34 +0200 Subject: [PATCH 146/430] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 07111ba2..21fc5644 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.2890", + "version": "3.1.0", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 4986de8dcf267d0001cd92b334bfe151898d2a82 Mon Sep 17 00:00:00 2001 From: c9bot Date: Mon, 12 Oct 2015 23:57:40 +0200 Subject: [PATCH 147/430] c9-auto-bump 3.1.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 21fc5644..173b749e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.0", + "version": "3.1.1", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From cb19c890acb160bba9c00921bd203ea732b115da Mon Sep 17 00:00:00 2001 From: c9bot Date: Tue, 13 Oct 2015 11:19:12 +0200 Subject: [PATCH 148/430] c9-auto-bump 3.1.2 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 173b749e..68fc8f65 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.1", + "version": "3.1.2", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 948bb734f9f5c91717bfdda61a7f2e1660b2c799 Mon Sep 17 00:00:00 2001 From: c9bot Date: Tue, 13 Oct 2015 13:46:16 +0200 Subject: [PATCH 149/430] c9-auto-bump 3.1.3 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 68fc8f65..5f0ec98d 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.2", + "version": "3.1.3", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From cf02d0a1b8989a733521268f879f733da79688a4 Mon Sep 17 00:00:00 2001 From: Fabian Jakobs Date: Tue, 13 Oct 2015 11:55:31 +0000 Subject: [PATCH 150/430] add user-content to server.js --- server.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/server.js b/server.js index 2711230c..3c8463e9 100755 --- a/server.js +++ b/server.js @@ -23,14 +23,12 @@ var DEFAULT_CONFIG = "s"; var DEFAULT_SETTINGS = getDefaultSettings(); var shortcuts = { - "dev" : ["ide", "preview", "vfs", "api", "sapi", "proxy", "redis", "profile", "oldclient", "homepage", "apps-proxy", "-s", "devel"], - "odev" : ["ide", "preview", "vfs", "api", "proxy", "oldclient", "homepage", "apps-proxy", "profile", "worker", "-s", "onlinedev"], - "bill" : ["ide", "preview", "vfs", "api", "proxy", "oldclient", "homepage", "apps-proxy", "profile", "-s", "billing"], - "beta" : ["ide", "preview", "vfs", "proxy", "-s", "beta"], - "ci" : ["ide", "preview", "vfs", "proxy", "-s", "ci"], + "dev" : ["ide", "preview", "user-content", "vfs", "api", "sapi", "proxy", "redis", "profile", "oldclient", "homepage", "apps-proxy", "-s", "devel"], + "odev" : ["ide", "preview", "user-content", "vfs", "api", "proxy", "oldclient", "homepage", "apps-proxy", "profile", "worker", "-s", "onlinedev"], + "beta" : ["ide", "preview", "user-content", "vfs", "proxy", "-s", "beta"], "s" : ["standalone", "-s", "standalone"] }; -var delayLoadConfigs = ["preview", "api", "oldclient", "apps-proxy", "worker"]; +var delayLoadConfigs = ["preview", "user-content", "api", "oldclient", "apps-proxy", "worker"]; module.exports = main; From 95012eb90a9d7df1005722f093a64af5b7465729 Mon Sep 17 00:00:00 2001 From: Fabian Jakobs Date: Tue, 13 Oct 2015 11:56:55 +0000 Subject: [PATCH 151/430] add to makefile --- node_modules/c9/object.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 node_modules/c9/object.js diff --git a/node_modules/c9/object.js b/node_modules/c9/object.js new file mode 100644 index 00000000..875dc338 --- /dev/null +++ b/node_modules/c9/object.js @@ -0,0 +1,9 @@ +/* + * Swap keys and values of an object + */ +exports.invert = function(obj) { + return Object.keys(obj).reduce(function(res, key) { + res[obj[key]] = key; + return res; + }, {}); +}; \ No newline at end of file From dd98d72879e051464652e8c52c48d4bac4dc8d4d Mon Sep 17 00:00:00 2001 From: c9bot Date: Tue, 13 Oct 2015 14:04:32 +0200 Subject: [PATCH 152/430] c9-auto-bump 3.1.4 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 5f0ec98d..2e51e8b7 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.3", + "version": "3.1.4", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From d242e0579746341564166adb7ba380155c7e9579 Mon Sep 17 00:00:00 2001 From: c9bot Date: Tue, 13 Oct 2015 14:14:25 +0200 Subject: [PATCH 153/430] c9-auto-bump 3.1.5 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2e51e8b7..23920ccc 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.4", + "version": "3.1.5", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 893bd3c699948c20edd243b765b0aa4f7afc6687 Mon Sep 17 00:00:00 2001 From: c9bot Date: Tue, 13 Oct 2015 14:27:26 +0200 Subject: [PATCH 154/430] c9-auto-bump 3.1.6 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 23920ccc..eeced9b8 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.5", + "version": "3.1.6", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From ced2da1f0da878031bd72aad5084b6b93603dfb1 Mon Sep 17 00:00:00 2001 From: c9bot Date: Tue, 13 Oct 2015 15:00:17 +0200 Subject: [PATCH 155/430] c9-auto-bump 3.1.7 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index eeced9b8..7aa4ccca 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.6", + "version": "3.1.7", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 3f6a2d66cd5202fe2d4c996e5776c776a23408fe Mon Sep 17 00:00:00 2001 From: c9bot Date: Tue, 13 Oct 2015 15:18:57 +0200 Subject: [PATCH 156/430] c9-auto-bump 3.1.8 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7aa4ccca..a38c18b8 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.7", + "version": "3.1.8", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 870ea43380b2666ce53b9445502241116a4dba43 Mon Sep 17 00:00:00 2001 From: c9bot Date: Wed, 14 Oct 2015 10:14:37 +0200 Subject: [PATCH 157/430] c9-auto-bump 3.1.9 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a38c18b8..6d7808e1 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.8", + "version": "3.1.9", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 02f401d368c5b4a3d2cbb82c3b8399df4f36e43e Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Mon, 12 Oct 2015 23:48:34 +0000 Subject: [PATCH 158/430] small fixes for sync --- plugins/c9.ide.layout.classic/icons/sync.png | Bin 0 -> 1889 bytes plugins/c9.ide.layout.classic/icons/sync@2x.png | Bin 0 -> 1895 bytes plugins/c9.ide.ui/lib_apf.js | 2 ++ plugins/c9.ide.ui/menus.js | 15 +++++++++++++++ 4 files changed, 17 insertions(+) create mode 100644 plugins/c9.ide.layout.classic/icons/sync.png create mode 100644 plugins/c9.ide.layout.classic/icons/sync@2x.png diff --git a/plugins/c9.ide.layout.classic/icons/sync.png b/plugins/c9.ide.layout.classic/icons/sync.png new file mode 100644 index 0000000000000000000000000000000000000000..76bdbab81bf0d9f648bda32ad08d56b7953eb081 GIT binary patch literal 1889 zcmbVNc~BE~6pjiMq}~>k(z2{aHJWTTC#;DOa!6ECj#N=Dmt;c%BpWuH5NNH6_XUiI zwhB0+sCc1L6h>zZB4t1*AQrE7a6qNlC>|X|MeIhz_7BI-bZ2*e$G-1--+RCJW;cf` z7mOM0Gnz)DjZuV3BdO7wdH{Df>iy!It_o_HO3I?iC|paXqXb41Yw$!2P#Dl8ED}RC z8EN&HkVYG&)2pJ%=&;3z8aFUerw!9)Fi~h4O&DY|q3RTj1QM|%y-@`Ap1%kJdW{HN z$_rzKnIxD_ADT&EQJG4WIx|Hbr~!lK140`@5g0HM1#E^?qZzS@z_+{zHFs`9An?|N zOc8-YqN2mX0SQiE0FTLGs97)!@cB%b%j5Imxd595vmq9B^BFJ~;qei+0C;zSls7`7 zMIxp0cfP2V2-K0J34x&W^mJxAhlvwO5F8j7=;UCt8I%RXoM9wU8^dUxHq0Q!%xXe! zBK5cta5AEaxP=sfl+vLP45qNK_ryl?yF^hbgKVe?f|)GHU~tCu*4j))V*kkaptV_* zVZxwD%#2$IHFX}^X~SSDcOQ4;G^ErZUlV%jP|#Ehp;kkAV(k$kn(u~9t_KPfiku%gu@Mxg|K-N z0S6w&DvV|lHL9^;zk15=JFMiRSVTf#D2Wp)98VptfN&j7;$|Ig0whs|DFdAZcXy? z>hqsAtp;={ro}Ex-0|$r{OFpyQ>BU26`(hDmJR@-A>@x31 zJ9etN`9a2#5@y0$q|iu7=|u_!J6}-&7hE1UGGAwrT$#M9t|M5XsGsD}3WdUg@|&s4 zCw9#6Syh`=2`*A9&z2lK_``UelAeEZMp}jLLXKy3XIEGKo0Zd*yx`8!t(AG6t+`_6 z-Pae(YyEwq)`N~Gwosw?$b^Z#UfYw_gYyFdX36rk0OJjpJ`taY1*hfyu3uxZTD1pq zf4b|%S{TB(Gw1W>=M6nIDK{;-;-zSF&g!~LVmIR%_H%5WU9_r` z$K!3+_3w6A=jAlur`J{%xnab!R>I^yi(s7}1&UwsyZUIhl^Me7SIe-Awr302{_8Ka21@IX3z)yFHli zL*gj9Kd|Ld(B+YfWtIsSTt#I5W4eV2!%vK9X=!Z>nX&{s@053{8h+syS5#JZ^ytyX z#zt~O=2G&^BWOy=pQV+RmASoJvOETH+E+cM;w9&ncP{jDbS<(>um0YXMaxT=HQ+l1 Qa{feV3Yk)RGGs;8-@wuA0RR91 literal 0 HcmV?d00001 diff --git a/plugins/c9.ide.layout.classic/icons/sync@2x.png b/plugins/c9.ide.layout.classic/icons/sync@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..9197db117e408b7d52e8f98977d18020e1811568 GIT binary patch literal 1895 zcmV-t2blPYP)KLZ*U+lnSp_Ufq@}0xwybFAi#%#fq@|}KQEO56)-X|e7nZL z$iTqBa9P*U#mSX{G{Bl%P*lRez;J+pfx##xwK$o9f#C}S14DXwNkIt%17i#W1A|CX zc0maP17iUL1A|C*NRTrF17iyV0~1e4YDEbH0|SF|enDkXW_m`6f}y3QrGjHhep0GJ zaAk2xYHqQDXI^rCQ9*uDVo7QW0|Nup4h9AW240u^5(W3f%sd4{Q&k2kgNVo|1qcff zJ_s=cNG>fZg9jx8g8+jTgC9dB!zzXcjM9uzjPn?uG8r;8FkNESU~Xi-%VNVakCmA< zoAoN26WbJk(nbKDkms+R=!8UN0C?Yg3=V_C>14@ z*Q#698rA(YWHsJu?$es6ovLH4E2R5M?}+|ghuuQb_ zv9_>LwH2{rvHNQO+~Kz41*c=qdtJ7=u6JAMzSLup=R&Uq-V1#e`!4fa<-a~)YvA6X zW5MS`ZiPMz`x3zvDHx>`Z5-nk8x@xq-;yvpadXny#c{8Bv*4S+lbD&|w7H};LTeNub$E6O-CMYHnI*EOxbxzS)#$L0rHt+q|w{$Z!@u2p+D_NMPUen9P!e)1|n}r>^TY4rKi~dU{r?XDE({%upgajN0000WV@Og>004R=004l4 z008;_004mL004C`008P>0026e000+nl3&F}000BVNklTWC~A7=XWwR-wHbprI)GsDhU$rG&O1^%4-Xo3h-)1l7@TpV)O&DVTe8r9|s;M+5{dqIyPKIzoj*KaR08mk;f=T^QjrU zyJqgYE*!ECfM)8s!f7h?S2JZ^BEEjlF?P5YY~k75G@wK z1o8+nz0*s!x$Dj0FrSd5WpQ89(%8mo-}Aq_E6qRu!{p1qRGE9lkBsDwVk>mk*aR*W z?-TcyJA!h>^o#SA3ZF~17QaCEcGqE#VknW}gD6)#+gU;}@C6)^)S$CE0{t#^8a;R7fziY9wlP9W;u+gKr~gIN}ae@|~OSXFBA`>E2n<_x8hx-<-z zy?Iv)Z=+2+zf&6LIAa9a1f>va6Hhwty@unGI!!3iqml zy36oLfR7mrA{HfVHlYEc2bt Date: Mon, 12 Oct 2015 17:17:24 -0700 Subject: [PATCH 159/430] Moved images --- configs/client-default.js | 13 +++++++++++++ configs/standalone.js | 4 +++- plugins/c9.ide.layout.classic/icons/sync.png | Bin 1889 -> 0 bytes plugins/c9.ide.layout.classic/icons/sync@2x.png | Bin 1895 -> 0 bytes 4 files changed, 16 insertions(+), 1 deletion(-) delete mode 100644 plugins/c9.ide.layout.classic/icons/sync.png delete mode 100644 plugins/c9.ide.layout.classic/icons/sync@2x.png diff --git a/configs/client-default.js b/configs/client-default.js index c71e359d..83aad55e 100644 --- a/configs/client-default.js +++ b/configs/client-default.js @@ -712,6 +712,19 @@ module.exports = function(options) { "plugins/c9.ide.scm/log", "plugins/c9.ide.scm/git", "plugins/c9.ide.scm/editor", + + // DO NOT COMMIT + { + packagePath: "plugins/salesforce.sync/plugin", + staticPrefix: staticPrefix + "/plugins/salesforce.sync" + }, + // "plugins/salesforce.sync/test", + "plugins/salesforce.sync/api-standalone", + // "plugins/salesforce.sync/immediateapex", + // "plugins/salesforce.sync/immediatequery", + // "plugins/salesforce.sync/preview_visualforce", + // "plugins/salesforce.sync/preview_lightning", + // "plugins/salesforce.language/apex_language" ]; if (!options.sdk) { diff --git a/configs/standalone.js b/configs/standalone.js index 01115eb1..6ebce587 100644 --- a/configs/standalone.js +++ b/configs/standalone.js @@ -155,7 +155,9 @@ module.exports = function(config, optimist) { "c9.cli.bridge": true, "c9.nodeapi": true, "c9.ide.experiment": true, - "saucelabs.preview": true + "saucelabs.preview": true, + "salesforce.sync": true, + "salesforce.language": true } }, "./c9.preview/statics", diff --git a/plugins/c9.ide.layout.classic/icons/sync.png b/plugins/c9.ide.layout.classic/icons/sync.png deleted file mode 100644 index 76bdbab81bf0d9f648bda32ad08d56b7953eb081..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1889 zcmbVNc~BE~6pjiMq}~>k(z2{aHJWTTC#;DOa!6ECj#N=Dmt;c%BpWuH5NNH6_XUiI zwhB0+sCc1L6h>zZB4t1*AQrE7a6qNlC>|X|MeIhz_7BI-bZ2*e$G-1--+RCJW;cf` z7mOM0Gnz)DjZuV3BdO7wdH{Df>iy!It_o_HO3I?iC|paXqXb41Yw$!2P#Dl8ED}RC z8EN&HkVYG&)2pJ%=&;3z8aFUerw!9)Fi~h4O&DY|q3RTj1QM|%y-@`Ap1%kJdW{HN z$_rzKnIxD_ADT&EQJG4WIx|Hbr~!lK140`@5g0HM1#E^?qZzS@z_+{zHFs`9An?|N zOc8-YqN2mX0SQiE0FTLGs97)!@cB%b%j5Imxd595vmq9B^BFJ~;qei+0C;zSls7`7 zMIxp0cfP2V2-K0J34x&W^mJxAhlvwO5F8j7=;UCt8I%RXoM9wU8^dUxHq0Q!%xXe! zBK5cta5AEaxP=sfl+vLP45qNK_ryl?yF^hbgKVe?f|)GHU~tCu*4j))V*kkaptV_* zVZxwD%#2$IHFX}^X~SSDcOQ4;G^ErZUlV%jP|#Ehp;kkAV(k$kn(u~9t_KPfiku%gu@Mxg|K-N z0S6w&DvV|lHL9^;zk15=JFMiRSVTf#D2Wp)98VptfN&j7;$|Ig0whs|DFdAZcXy? z>hqsAtp;={ro}Ex-0|$r{OFpyQ>BU26`(hDmJR@-A>@x31 zJ9etN`9a2#5@y0$q|iu7=|u_!J6}-&7hE1UGGAwrT$#M9t|M5XsGsD}3WdUg@|&s4 zCw9#6Syh`=2`*A9&z2lK_``UelAeEZMp}jLLXKy3XIEGKo0Zd*yx`8!t(AG6t+`_6 z-Pae(YyEwq)`N~Gwosw?$b^Z#UfYw_gYyFdX36rk0OJjpJ`taY1*hfyu3uxZTD1pq zf4b|%S{TB(Gw1W>=M6nIDK{;-;-zSF&g!~LVmIR%_H%5WU9_r` z$K!3+_3w6A=jAlur`J{%xnab!R>I^yi(s7}1&UwsyZUIhl^Me7SIe-Awr302{_8Ka21@IX3z)yFHli zL*gj9Kd|Ld(B+YfWtIsSTt#I5W4eV2!%vK9X=!Z>nX&{s@053{8h+syS5#JZ^ytyX z#zt~O=2G&^BWOy=pQV+RmASoJvOETH+E+cM;w9&ncP{jDbS<(>um0YXMaxT=HQ+l1 Qa{feV3Yk)RGGs;8-@wuA0RR91 diff --git a/plugins/c9.ide.layout.classic/icons/sync@2x.png b/plugins/c9.ide.layout.classic/icons/sync@2x.png deleted file mode 100644 index 9197db117e408b7d52e8f98977d18020e1811568..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1895 zcmV-t2blPYP)KLZ*U+lnSp_Ufq@}0xwybFAi#%#fq@|}KQEO56)-X|e7nZL z$iTqBa9P*U#mSX{G{Bl%P*lRez;J+pfx##xwK$o9f#C}S14DXwNkIt%17i#W1A|CX zc0maP17iUL1A|C*NRTrF17iyV0~1e4YDEbH0|SF|enDkXW_m`6f}y3QrGjHhep0GJ zaAk2xYHqQDXI^rCQ9*uDVo7QW0|Nup4h9AW240u^5(W3f%sd4{Q&k2kgNVo|1qcff zJ_s=cNG>fZg9jx8g8+jTgC9dB!zzXcjM9uzjPn?uG8r;8FkNESU~Xi-%VNVakCmA< zoAoN26WbJk(nbKDkms+R=!8UN0C?Yg3=V_C>14@ z*Q#698rA(YWHsJu?$es6ovLH4E2R5M?}+|ghuuQb_ zv9_>LwH2{rvHNQO+~Kz41*c=qdtJ7=u6JAMzSLup=R&Uq-V1#e`!4fa<-a~)YvA6X zW5MS`ZiPMz`x3zvDHx>`Z5-nk8x@xq-;yvpadXny#c{8Bv*4S+lbD&|w7H};LTeNub$E6O-CMYHnI*EOxbxzS)#$L0rHt+q|w{$Z!@u2p+D_NMPUen9P!e)1|n}r>^TY4rKi~dU{r?XDE({%upgajN0000WV@Og>004R=004l4 z008;_004mL004C`008P>0026e000+nl3&F}000BVNklTWC~A7=XWwR-wHbprI)GsDhU$rG&O1^%4-Xo3h-)1l7@TpV)O&DVTe8r9|s;M+5{dqIyPKIzoj*KaR08mk;f=T^QjrU zyJqgYE*!ECfM)8s!f7h?S2JZ^BEEjlF?P5YY~k75G@wK z1o8+nz0*s!x$Dj0FrSd5WpQ89(%8mo-}Aq_E6qRu!{p1qRGE9lkBsDwVk>mk*aR*W z?-TcyJA!h>^o#SA3ZF~17QaCEcGqE#VknW}gD6)#+gU;}@C6)^)S$CE0{t#^8a;R7fziY9wlP9W;u+gKr~gIN}ae@|~OSXFBA`>E2n<_x8hx-<-z zy?Iv)Z=+2+zf&6LIAa9a1f>va6Hhwty@unGI!!3iqml zy36oLfR7mrA{HfVHlYEc2bt Date: Tue, 13 Oct 2015 07:32:18 -0700 Subject: [PATCH 160/430] Fix splitbutton moveleft behavior --- plugins/c9.ide.ui/lib_apf.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/c9.ide.ui/lib_apf.js b/plugins/c9.ide.ui/lib_apf.js index daa1efbc..25988dc1 100644 --- a/plugins/c9.ide.ui/lib_apf.js +++ b/plugins/c9.ide.ui/lib_apf.js @@ -33555,7 +33555,9 @@ apf.splitbutton = function(struct, tagName) { var diff = apf.getAbsolutePosition(split.$button2.$ext)[0] - apf.getAbsolutePosition(split.$button1.$ext)[0]; - this.$ext.style.marginLeft = "-" + diff + "px"; + this.$ext.style.marginLeft = ~this.$ext.className.indexOf("moveleft") + ? 0 + : "-" + diff + "px"; }); menu.$splitInited = true; } From b6d0c1cdb6cff3cf94c0e88172f4c0a9bb8ed9ae Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Tue, 13 Oct 2015 22:59:27 -0700 Subject: [PATCH 161/430] Cleanup --- configs/client-default.js | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/configs/client-default.js b/configs/client-default.js index 83aad55e..b04c8dbd 100644 --- a/configs/client-default.js +++ b/configs/client-default.js @@ -711,20 +711,7 @@ module.exports = function(options) { "plugins/c9.ide.scm/detail", "plugins/c9.ide.scm/log", "plugins/c9.ide.scm/git", - "plugins/c9.ide.scm/editor", - - // DO NOT COMMIT - { - packagePath: "plugins/salesforce.sync/plugin", - staticPrefix: staticPrefix + "/plugins/salesforce.sync" - }, - // "plugins/salesforce.sync/test", - "plugins/salesforce.sync/api-standalone", - // "plugins/salesforce.sync/immediateapex", - // "plugins/salesforce.sync/immediatequery", - // "plugins/salesforce.sync/preview_visualforce", - // "plugins/salesforce.sync/preview_lightning", - // "plugins/salesforce.language/apex_language" + "plugins/c9.ide.scm/editor" ]; if (!options.sdk) { From 625a04b9511dcd274ead45d845562d4c2036c5b4 Mon Sep 17 00:00:00 2001 From: c9bot Date: Wed, 14 Oct 2015 10:38:12 +0200 Subject: [PATCH 162/430] c9-auto-bump 3.1.10 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 6d7808e1..f08c96d7 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.9", + "version": "3.1.10", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 9bba201da479685898539540f0446ba93bb44dde Mon Sep 17 00:00:00 2001 From: Lennart kats Date: Wed, 14 Oct 2015 09:16:18 +0000 Subject: [PATCH 163/430] Don't ignore _ for unused variable detection --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 6d7808e1..5e8ab448 100644 --- a/package.json +++ b/package.json @@ -62,7 +62,7 @@ "c9.ide.language.html.diff": "#24f3608d26", "c9.ide.language.javascript": "#2b77bdb96a", "c9.ide.language.javascript.immediate": "#0535804ada", - "c9.ide.language.javascript.eslint": "#df7e424b54", + "c9.ide.language.javascript.eslint": "#3ec4557969", "c9.ide.language.javascript.tern": "#40cf04bded", "c9.ide.language.javascript.infer": "#8478e3c702", "c9.ide.language.jsonalyzer": "#8401c240b3", From 30853212c70564dc5dfa12772497aec13af053af Mon Sep 17 00:00:00 2001 From: Dana Date: Wed, 14 Oct 2015 10:22:36 +0000 Subject: [PATCH 164/430] move internal domain check outside analytics --- node_modules/c9/blacklist.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 node_modules/c9/blacklist.js diff --git a/node_modules/c9/blacklist.js b/node_modules/c9/blacklist.js new file mode 100644 index 00000000..5479d6ea --- /dev/null +++ b/node_modules/c9/blacklist.js @@ -0,0 +1,13 @@ +var _ = require("lodash"); + + +var internalDomain = ['c9.io', 'clou9beta.com']; + +function hasInternalDomain(email) { + var emailElements = email.split("@"); + var emailDomain = emailElements[emailElements.length - 1]; + + return _.contains(internalDomain, emailDomain); +} + +module.exports = hasInternalDomain(); \ No newline at end of file From 91e6aec9efe569e573acc18d4632540bbf809d16 Mon Sep 17 00:00:00 2001 From: c9bot Date: Wed, 14 Oct 2015 15:22:57 +0200 Subject: [PATCH 165/430] c9-auto-bump 3.1.11 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f08c96d7..0f877f40 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.10", + "version": "3.1.11", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 8224fb8c661aa63bb6602b9ef79903b81e8aed08 Mon Sep 17 00:00:00 2001 From: Fabian Jakobs Date: Wed, 14 Oct 2015 13:31:30 +0000 Subject: [PATCH 166/430] add user content moved page --- node_modules/c9/urls.js | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/node_modules/c9/urls.js b/node_modules/c9/urls.js index a1b000af..8f5fc472 100644 --- a/node_modules/c9/urls.js +++ b/node_modules/c9/urls.js @@ -22,6 +22,14 @@ function main(options, imports, register) { }); } +plugin.getHost = function(req) { + return (req.headers && req.headers.host + || req.host + || req.url && req.url.replace(/^https?:\/\/([^/]*).*/, "$1") + || req + ); +}; + /** * Get a desired base URL, given some context. * @@ -30,10 +38,8 @@ function main(options, imports, register) { * @param {String} targetBaseUrlPattern The target URL pattern, e.g. https://$DOMAIN */ plugin.getBaseUrl = function(req, sourceBaseUrlPattern, targetBaseUrlPattern) { - var sourceHost = req.headers && req.headers.host - || req.host - || req.url && req.url.replace(/^https?:\/\/([^/]*).*/, "$1") - || req; + var sourceHost = plugin.getHost(req); + if (typeof sourceHost !== "string") throw new Error("Not a valid request object: " + req); if (!sourceBaseUrlPattern) From 5b5855828023327fcfc85b5fd86e5f0b3db87401 Mon Sep 17 00:00:00 2001 From: Dana Date: Wed, 14 Oct 2015 14:01:55 +0000 Subject: [PATCH 167/430] Clean up analytics calls --- plugins/c9.vfs.server/vfs.server.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/plugins/c9.vfs.server/vfs.server.js b/plugins/c9.vfs.server/vfs.server.js index 37fbc2c4..f3aa3954 100644 --- a/plugins/c9.vfs.server/vfs.server.js +++ b/plugins/c9.vfs.server/vfs.server.js @@ -327,15 +327,6 @@ function plugin(options, imports, register) { if (new Date(user.lastVfsAccess).getDate() != new Date().getDate() || Date.now() > user.lastVfsAccess + VFS_ACTIVITY_WINDOW) { - // Keeping this temporarily to be replaced by API request only - async.series([ - analytics.aliasClean.bind(analytics, req.cookies.mixpanelAnonymousId, user.id), - analytics.identifyClean.bind(analytics, user, {}), - analytics.trackClean.bind(analytics, user, "VFS is active", { uid: user.id }), - ], function(err) { - if (err) return console.log("Error logging activity", err.stack || err); - }); - analytics.superagent && analytics.superagent .post(options.apiBaseUrl + "/metric/usage/" + req.params.pid + "?access_token=" + req.query.access_token) .end(function() {}); From b022adea69643ba04f55df515bcd21aa0edd91d3 Mon Sep 17 00:00:00 2001 From: c9bot Date: Wed, 14 Oct 2015 16:47:58 +0200 Subject: [PATCH 168/430] c9-auto-bump 3.1.12 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0f877f40..af02da2c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.11", + "version": "3.1.12", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From b0e10d15b5c5dba7927be2bf5f180183bfdcf79f Mon Sep 17 00:00:00 2001 From: Fabian Jakobs Date: Wed, 14 Oct 2015 14:53:53 +0000 Subject: [PATCH 169/430] secure redirect --- node_modules/c9/string.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/node_modules/c9/string.js b/node_modules/c9/string.js index 5e3714ce..2a28f65c 100644 --- a/node_modules/c9/string.js +++ b/node_modules/c9/string.js @@ -43,5 +43,14 @@ exports.repeat = function(str, times) { exports.count = function(str, substr){ return str.split(substr).length - 1; }; + +exports.endsWith = function(subjectString, searchString, position) { + if (typeof position !== 'number' || !isFinite(position) || Math.floor(position) !== position || position > subjectString.length) { + position = subjectString.length; + } + position -= searchString.length; + var lastIndex = subjectString.indexOf(searchString, position); + return lastIndex !== -1 && lastIndex === position; +}; }); \ No newline at end of file From 53058e5e4f2df34a3aed2b17959da942e737e06b Mon Sep 17 00:00:00 2001 From: c9bot Date: Wed, 14 Oct 2015 17:08:13 +0200 Subject: [PATCH 170/430] c9-auto-bump 3.1.13 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index af02da2c..0f9b5212 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.12", + "version": "3.1.13", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From b6d157fb3ed3f8a5d6c6e90d1575c9a80e0d30c2 Mon Sep 17 00:00:00 2001 From: c9bot Date: Wed, 14 Oct 2015 17:23:13 +0200 Subject: [PATCH 171/430] c9-auto-bump 3.1.14 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0f9b5212..1ef2b6f2 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.13", + "version": "3.1.14", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From d39a09dcc1f7114fefc655ec426b8ae64ed9ae40 Mon Sep 17 00:00:00 2001 From: Dana Date: Wed, 14 Oct 2015 15:46:27 +0000 Subject: [PATCH 172/430] fix tests --- node_modules/c9/blacklist.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/node_modules/c9/blacklist.js b/node_modules/c9/blacklist.js index 5479d6ea..85cfb617 100644 --- a/node_modules/c9/blacklist.js +++ b/node_modules/c9/blacklist.js @@ -4,6 +4,8 @@ var _ = require("lodash"); var internalDomain = ['c9.io', 'clou9beta.com']; function hasInternalDomain(email) { + if (!email) return false; + var emailElements = email.split("@"); var emailDomain = emailElements[emailElements.length - 1]; From b493d74eca5976d5c3d5df7a4c929808469e865a Mon Sep 17 00:00:00 2001 From: c9bot Date: Thu, 15 Oct 2015 09:52:55 +0200 Subject: [PATCH 173/430] c9-auto-bump 3.1.15 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1ef2b6f2..840b4611 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.14", + "version": "3.1.15", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 46683430e9ca5fa0a9d06823aa9f3b9aaa52be2c Mon Sep 17 00:00:00 2001 From: c9bot Date: Thu, 15 Oct 2015 09:55:50 +0200 Subject: [PATCH 174/430] c9-auto-bump 3.1.16 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 840b4611..e98359a5 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.15", + "version": "3.1.16", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 53a222db34782cf2b753c585824bf80a5e03023d Mon Sep 17 00:00:00 2001 From: Dana Date: Thu, 15 Oct 2015 08:21:18 +0000 Subject: [PATCH 175/430] Fix function export error --- node_modules/c9/blacklist.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node_modules/c9/blacklist.js b/node_modules/c9/blacklist.js index 85cfb617..cfcd29c3 100644 --- a/node_modules/c9/blacklist.js +++ b/node_modules/c9/blacklist.js @@ -12,4 +12,4 @@ function hasInternalDomain(email) { return _.contains(internalDomain, emailDomain); } -module.exports = hasInternalDomain(); \ No newline at end of file +module.exports = hasInternalDomain; \ No newline at end of file From 8d708afbc4634a4ff9952345f34cd5d2ef7904b2 Mon Sep 17 00:00:00 2001 From: c9bot Date: Thu, 15 Oct 2015 13:50:34 +0200 Subject: [PATCH 176/430] c9-auto-bump 3.1.17 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e98359a5..144f5a15 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.16", + "version": "3.1.17", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From f7ed5dff992c4d5520a0eb5bb8de6a0096f5a922 Mon Sep 17 00:00:00 2001 From: Dana Date: Thu, 15 Oct 2015 12:13:29 +0000 Subject: [PATCH 177/430] Rename blacklist file to something more descriptive --- node_modules/c9/{blacklist.js => has-internal-domain.js} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename node_modules/c9/{blacklist.js => has-internal-domain.js} (100%) diff --git a/node_modules/c9/blacklist.js b/node_modules/c9/has-internal-domain.js similarity index 100% rename from node_modules/c9/blacklist.js rename to node_modules/c9/has-internal-domain.js From 16d9a34d42f733f3a0078afe495e093f5d15890c Mon Sep 17 00:00:00 2001 From: c9bot Date: Fri, 16 Oct 2015 09:51:56 +0200 Subject: [PATCH 178/430] c9-auto-bump 3.1.18 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 144f5a15..900b875e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.17", + "version": "3.1.18", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From a4ad6e528c267930b79e94c835d311003802e2ac Mon Sep 17 00:00:00 2001 From: c9bot Date: Fri, 16 Oct 2015 14:12:02 +0200 Subject: [PATCH 179/430] c9-auto-bump 3.1.19 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 900b875e..7b1e2f79 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.18", + "version": "3.1.19", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From bdad349aa1d88540d8cdedb92b387e50306a4859 Mon Sep 17 00:00:00 2001 From: c9bot Date: Fri, 16 Oct 2015 15:51:12 +0200 Subject: [PATCH 180/430] c9-auto-bump 3.1.20 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index c29f0578..545aec96 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.19", + "version": "3.1.20", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 5c264663dab34dec14fb9738ea39cdad58e06e88 Mon Sep 17 00:00:00 2001 From: c9bot Date: Fri, 16 Oct 2015 15:55:48 +0200 Subject: [PATCH 181/430] c9-auto-bump 3.1.21 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 545aec96..dd590853 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.20", + "version": "3.1.21", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From d18ffff81bd2195e823b07b140d68ce3781a2522 Mon Sep 17 00:00:00 2001 From: c9bot Date: Fri, 16 Oct 2015 16:29:19 +0200 Subject: [PATCH 182/430] c9-auto-bump 3.1.22 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index dd590853..af8751ea 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.21", + "version": "3.1.22", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 2bd0c4081e1f05230259b5d5cf10ecbe9b4daa2a Mon Sep 17 00:00:00 2001 From: c9bot Date: Fri, 16 Oct 2015 17:00:23 +0200 Subject: [PATCH 183/430] c9-auto-bump 3.1.23 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index af8751ea..3f643434 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.22", + "version": "3.1.23", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 6af00b670ea08a765b9c0b4ea97e5c40227ff7f8 Mon Sep 17 00:00:00 2001 From: nightwing Date: Sat, 17 Oct 2015 15:44:42 +0400 Subject: [PATCH 184/430] fix stats menu in salesforce workspace --- package.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package.json b/package.json index 3f643434..e23ee803 100644 --- a/package.json +++ b/package.json @@ -108,6 +108,8 @@ "c9.ide.save": "#e00549cb0f", "c9.ide.scm": "#38d2b48b31", "c9.ide.terminal.monitor": "#b76f1c9f24", + "c9.ide.test": "#d312a01ac6", + "c9.ide.test.mocha": "#79ff886c04", "c9.ide.theme.flat": "#2de8414db7", "c9.ide.threewaymerge": "#229382aa0b", "c9.ide.undo": "#b028bcb4d5", From 59a7866b8be14d0ef2b2410a984e657382ed8a71 Mon Sep 17 00:00:00 2001 From: nightwing Date: Sat, 17 Oct 2015 18:33:52 +0400 Subject: [PATCH 185/430] fix c9 publish failing silently --- bin/c9 | 2 -- configs/cli.js | 14 ++++++++------ plugins/c9.cli.publish/publish.js | 20 ++++++++++++++++++-- 3 files changed, 26 insertions(+), 10 deletions(-) diff --git a/bin/c9 b/bin/c9 index 32d1f9e5..9de38075 100755 --- a/bin/c9 +++ b/bin/c9 @@ -6,8 +6,6 @@ var architect = require("architect"); // Add ability to load AMD modules require("amd-loader"); -var verbose = process.argv.indexOf("--verbose") + 1 - || process.argv.indexOf("-v") + 1; architect.resolveConfig(require("../configs/cli.js")(), __dirname + "/../plugins", function (err, config) { diff --git a/configs/cli.js b/configs/cli.js index 9bfebe48..80a8d3f5 100644 --- a/configs/cli.js +++ b/configs/cli.js @@ -1,12 +1,14 @@ module.exports = function(options) { // workaround for api difference between node and c9 events modules -var EventEmitter = require("events").EventEmitter; -var emit_ = EventEmitter.prototype.emit -EventEmitter.prototype.emit = function() { - emit_.apply(this, arguments); - return true; -} +var EventEmitter = require("../plugins/c9.nodeapi/events").EventEmitter; +var Module = require("module"); +var _resolveFilename_orig = Module._resolveFilename +Module._resolveFilename = function(id, parent) { + if (id == "events" && parent && /c9.core[\\/]ext\.js/.test(parent.id)) + id = "../c9.nodeapi/events"; + return _resolveFilename_orig.call(Module, id, parent); +}; var PID = process.env.C9_PID || 526; var APIHOST = process.env.C9_APIHOST || "api.c9.io"; // "api.c9.io"; diff --git a/plugins/c9.cli.publish/publish.js b/plugins/c9.cli.publish/publish.js index 81cb6459..9c817498 100644 --- a/plugins/c9.cli.publish/publish.js +++ b/plugins/c9.cli.publish/publish.js @@ -44,6 +44,7 @@ define(function(require, exports, module) { var force = false; var dryRun = false; var createTag = false; + var compress = false; // Set up basic auth for api if needed if (BASICAUTH) api.basicAuth = BASICAUTH; @@ -85,6 +86,11 @@ define(function(require, exports, module) { "alias": "t", "default": false, "boolean": true + }, + "compress" : { + "description": "Minify output with uglify.js", + "default": true, + "boolean": true } }, check: function(argv) { @@ -125,9 +131,17 @@ define(function(require, exports, module) { "alias": "d", "default": false, "boolean": true + }, + "compress" : { + "description": "Minify output with uglify.js", + "default": false, + "boolean": true } }, exec: function(argv) { + compress = argv["compress"]; + verbose = argv["verbose"]; + force = argv["force"]; if (argv["devel"]) { var code = function(argument) { /* TODO explain */ @@ -159,13 +173,14 @@ define(function(require, exports, module) { } else { dryRun = true; - publish({local: true}, function(err){ + publish({local: true}, function(err, result){ if (err) { console.error(err); if (!verbose) console.error("\nTry running with --verbose flag for more information"); process.exit(1); } + console.log("Done!"); }); } } @@ -186,6 +201,7 @@ define(function(require, exports, module) { check: function(argv) {}, exec: function(argv) { verbose = argv["verbose"]; + compress = argv["compress"]; unpublish( function(err, data){ @@ -574,7 +590,7 @@ define(function(require, exports, module) { enableBrowser: true, includeConfig: false, noArchitect: true, - compress: !dryRun, + compress: compress, obfuscate: true, oneLine: true, filter: [], From 7126015b1b5b6a47205ab80d3fa89136c206c3b5 Mon Sep 17 00:00:00 2001 From: nightwing Date: Sat, 17 Oct 2015 18:35:09 +0000 Subject: [PATCH 186/430] fix symlink loop detection --- node_modules/vfs-local/localfs.js | 35 +++++++++++++++++-------------- plugins/c9.fs/fs.cache.xml.js | 4 ++-- 2 files changed, 21 insertions(+), 18 deletions(-) diff --git a/node_modules/vfs-local/localfs.js b/node_modules/vfs-local/localfs.js index f9376f77..1984e00d 100644 --- a/node_modules/vfs-local/localfs.js +++ b/node_modules/vfs-local/localfs.js @@ -350,7 +350,7 @@ module.exports = function setup(fsOptions) { // This helper function doesn't follow node conventions in the callback, // there is no err, only entry. - function createStatEntry(file, fullpath, callback) { + function createStatEntry(file, fullpath, callback, _loop) { fs.lstat(fullpath, function (err, stat) { var entry = { name: file @@ -378,26 +378,29 @@ module.exports = function setup(fsOptions) { return callback(entry); } fs.readlink(fullpath, function (err, link) { - if (entry.name == link) { - entry.linkStatErr = "ELOOP: recursive symlink"; - return callback(entry); - } - if (err) { entry.linkErr = err.stack; return callback(entry); } + var fullLinkPath = pathResolve(dirname(fullpath), link); + if (!_loop) { + _loop = {fullLinkPath: fullpath, max: 100}; + } + if (fullLinkPath.toLowerCase() == _loop.fullLinkPath.toLowerCase() || _loop.max --< 0) { + entry.linkErr = "ELOOP: recursive symlink"; + return callback(entry); + } entry.link = link; - resolvePath(pathResolve(dirname(fullpath), link), {alreadyRooted: true}, function (err, newpath) { - if (err) { - entry.linkStatErr = err; - return callback(entry); - } - createStatEntry(basename(newpath), newpath, function (linkStat) { - entry.linkStat = linkStat; - linkStat.fullPath = newpath.substr(base.length) || "/"; - return callback(entry); - }); + resolvePath(fullLinkPath, {alreadyRooted: true}, function (err, newpath) { + if (err) { + entry.linkErr = err; + return callback(entry); + } + createStatEntry(basename(newpath), newpath, function (linkStat) { + entry.linkStat = linkStat; + linkStat.fullPath = newpath.substr(base.length) || "/"; + return callback(entry); + }, _loop); }); }); } diff --git a/plugins/c9.fs/fs.cache.xml.js b/plugins/c9.fs/fs.cache.xml.js index dda745dd..c9ad1844 100644 --- a/plugins/c9.fs/fs.cache.xml.js +++ b/plugins/c9.fs/fs.cache.xml.js @@ -561,8 +561,8 @@ define(function(require, exports, module) { node.size = stat.size; if (stat.mtime != undefined) node.mtime = stat.mtime; - if (original_stat) - node.link = stat.fullPath; + if (original_stat || stat.linkErr) + node.link = stat.fullPath || stat.linkErr; node.isFolder = isFolder; } From 4a1d16e351ec29b07dc2ef434f40811a94c5062a Mon Sep 17 00:00:00 2001 From: c9bot Date: Sat, 17 Oct 2015 23:41:49 +0200 Subject: [PATCH 187/430] c9-auto-bump 3.1.24 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 3f643434..45971115 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.23", + "version": "3.1.24", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 7a08bfa464c0a6fc6be9c081516507ec28adc657 Mon Sep 17 00:00:00 2001 From: c9bot Date: Mon, 19 Oct 2015 00:12:00 +0200 Subject: [PATCH 188/430] c9-auto-bump 3.1.25 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 45971115..eb9ba65d 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.24", + "version": "3.1.25", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From be0197a56e16175161dc26367a6bf4ed36f02036 Mon Sep 17 00:00:00 2001 From: c9bot Date: Mon, 19 Oct 2015 09:30:34 +0200 Subject: [PATCH 189/430] c9-auto-bump 3.1.26 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index eb9ba65d..85317563 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.25", + "version": "3.1.26", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From e98d859adb9e7a9625ae2af47c10ba1b0a0c428b Mon Sep 17 00:00:00 2001 From: c9bot Date: Mon, 19 Oct 2015 10:22:24 +0200 Subject: [PATCH 190/430] c9-auto-bump 3.1.27 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 85317563..c4b64c09 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.26", + "version": "3.1.27", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 487102f58d4e7668c463af3596aa549dc1a09a56 Mon Sep 17 00:00:00 2001 From: c9bot Date: Mon, 19 Oct 2015 10:51:35 +0200 Subject: [PATCH 191/430] c9-auto-bump 3.1.28 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index c4b64c09..9c9e6b8f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.27", + "version": "3.1.28", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 3d938c39bb76fbd59db19998ae907a45dbb6c2db Mon Sep 17 00:00:00 2001 From: c9bot Date: Mon, 19 Oct 2015 11:23:06 +0200 Subject: [PATCH 192/430] c9-auto-bump 3.1.29 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9c9e6b8f..7c6a2b2d 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.28", + "version": "3.1.29", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From d8c19752a4ec6a322f5f5abb7825139e9d27b40c Mon Sep 17 00:00:00 2001 From: c9bot Date: Mon, 19 Oct 2015 12:18:56 +0200 Subject: [PATCH 193/430] c9-auto-bump 3.1.30 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7c6a2b2d..51939a9d 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.29", + "version": "3.1.30", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 663677be9f309840b8493dce1597edb3b5703345 Mon Sep 17 00:00:00 2001 From: c9bot Date: Mon, 19 Oct 2015 12:38:56 +0200 Subject: [PATCH 194/430] c9-auto-bump 3.1.31 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 51939a9d..f58c0b78 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.30", + "version": "3.1.31", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 76577edb8a1028230ecb32c81d9f6254dfc3c1f1 Mon Sep 17 00:00:00 2001 From: c9bot Date: Mon, 19 Oct 2015 12:47:01 +0200 Subject: [PATCH 195/430] c9-auto-bump 3.1.32 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f58c0b78..1fab5b24 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.31", + "version": "3.1.32", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From bee22480da4f5dc7302eac8c968e5a248b3807a3 Mon Sep 17 00:00:00 2001 From: c9bot Date: Mon, 19 Oct 2015 13:47:21 +0200 Subject: [PATCH 196/430] c9-auto-bump 3.1.33 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1fab5b24..dcb1705e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.32", + "version": "3.1.33", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From ef86a4f4bc3f78adbc2ced0e5dc1440f6da7c3d4 Mon Sep 17 00:00:00 2001 From: Tim Robinson Date: Mon, 19 Oct 2015 12:55:09 +0000 Subject: [PATCH 197/430] Validate package name only contains valid characters. Unblacklist publish test as it works now --- package.json | 2 ++ plugins/c9.cli.publish/publish.js | 48 ++++++++++++++++---------- plugins/c9.cli.publish/publish_test.js | 9 +++-- 3 files changed, 38 insertions(+), 21 deletions(-) diff --git a/package.json b/package.json index dd590853..f9828fa7 100644 --- a/package.json +++ b/package.json @@ -108,6 +108,8 @@ "c9.ide.save": "#e00549cb0f", "c9.ide.scm": "#38d2b48b31", "c9.ide.terminal.monitor": "#b76f1c9f24", + "c9.ide.test": "#d312a01ac6", + "c9.ide.test.mocha": "#79ff886c04", "c9.ide.theme.flat": "#2de8414db7", "c9.ide.threewaymerge": "#229382aa0b", "c9.ide.undo": "#b028bcb4d5", diff --git a/plugins/c9.cli.publish/publish.js b/plugins/c9.cli.publish/publish.js index 81cb6459..3642c3d8 100644 --- a/plugins/c9.cli.publish/publish.js +++ b/plugins/c9.cli.publish/publish.js @@ -108,7 +108,7 @@ define(function(require, exports, module) { process.exit(1); } else if (!dryRun) { - console.log("Succesfully published version", data.version); + console.log("Successfully published version", data.version); process.exit(0); } }); @@ -194,7 +194,7 @@ define(function(require, exports, module) { process.exit(1); } else { - console.log("Succesfully disabled package"); + console.log("Successfully disabled package"); process.exit(0); } }); @@ -234,6 +234,29 @@ define(function(require, exports, module) { return (verbose ? JSON.stringify(err, 4, " ") : (typeof err == "string" ? err : err.message)); } + function validateConfig(json) { + var cwd = process.cwd(); + + // Basic Validation + if (json.private) + return new Error("ERROR: Private flag in package.json prevents from publishing"); + if (!json.name) + return new Error("ERROR: Missing name property in package.json"); + if (!json.name.match(/^[\w\._]+$/)) + return new Error("ERROR: Package name can only contain Alphanumeric characters, periods and underscores"); + if (basename(cwd) != json.name) { + console.warn("WARNING: The name property in package.json is not equal to the directory name, which is " + basename(cwd)); + if (!force) + return new Error("Use --force to ignore this warning."); + } + if (!json.repository) + return new Error("ERROR: Missing repository property in package.json"); + if (!json.repository.url) + return new Error("ERROR: Missing repository.url property in package.json"); + if (!json.categories || json.categories.length == 0) + return new Error("ERROR: At least one category is required in package.json"); + } + function publish(options, callback) { if (typeof options != "object") options = {version: options}; @@ -250,22 +273,8 @@ define(function(require, exports, module) { return callback(new Error("ERROR: Could not parse package.json: ", e.message)); } - // Basic Validation - if (json.private) - return callback(new Error("ERROR: Private flag in package.json prevents from publishing")); - if (!json.name) - return callback(new Error("ERROR: Missing name property in package.json")); - if (basename(cwd) != json.name) { - console.warn("WARNING: The name property in package.json is not equal to the directory name, which is " + basename(cwd)); - if (!force) - return callback(new Error("Use --force to ignore this warning.")); - } - if (!json.repository) - return callback(new Error("ERROR: Missing repository property in package.json")); - if (!json.repository.url) - return callback(new Error("ERROR: Missing repository.url property in package.json")); - if (!json.categories || json.categories.length == 0) - return callback(new Error("ERROR: At least one category is required in package.json")); + var validationError = validateConfig(json); + if (validationError) return callback(validationError); var description = json.description; @@ -694,9 +703,10 @@ define(function(require, exports, module) { pricing: json.pricing || {} } }, function(err, pkg){ - if (err) + if (err) { return callback(new Error("ERROR: Failed to upload new package to API - " + stringifyError(err))); + } next(pkg); }); diff --git a/plugins/c9.cli.publish/publish_test.js b/plugins/c9.cli.publish/publish_test.js index 27574203..a9abc778 100644 --- a/plugins/c9.cli.publish/publish_test.js +++ b/plugins/c9.cli.publish/publish_test.js @@ -2,8 +2,6 @@ "use strict"; "use server"; -"use blacklist"; - require("c9/inline-mocha")(module); if (typeof define === "undefined") { @@ -116,6 +114,13 @@ describe("cli.publish", function(){ done(); }); }); + it("should fail if the name in the package.json contains invalid characters", function(done){ + fs.writeFileSync(packagePath, packageJson.replace('c9.ide.example', 'c9-ide-example')); + runCLI("publish", ["major"], function(err, stdout, stderr){ + expect(stderr).to.match(/ERROR: Package name can only contain/); + done(); + }); + }); it("should fail if the name in the package.json is not equal to the directory", function(done){ fs.writeFileSync(packagePath, packageJson.replace('"name": "c9.ide.example"', '"name": "wrongname"')); runCLI("publish", ["major"], function(err, stdout, stderr){ From 38e4f3c1d738c47b1b23122cc34983956a066af7 Mon Sep 17 00:00:00 2001 From: Tim Robinson Date: Mon, 19 Oct 2015 13:33:08 +0000 Subject: [PATCH 198/430] Added default value for permissions and made it error if it's not set to org or world --- plugins/c9.cli.publish/publish.js | 15 ++++++++++++++- plugins/c9.cli.publish/publish_test.js | 20 +++++++++++++++++++- 2 files changed, 33 insertions(+), 2 deletions(-) diff --git a/plugins/c9.cli.publish/publish.js b/plugins/c9.cli.publish/publish.js index 3642c3d8..a7a028a7 100644 --- a/plugins/c9.cli.publish/publish.js +++ b/plugins/c9.cli.publish/publish.js @@ -234,6 +234,12 @@ define(function(require, exports, module) { return (verbose ? JSON.stringify(err, 4, " ") : (typeof err == "string" ? err : err.message)); } + function addMissingValues(json) { + json.permissions = json.permissions || "world"; + + return json; + } + function validateConfig(json) { var cwd = process.cwd(); @@ -255,6 +261,8 @@ define(function(require, exports, module) { return new Error("ERROR: Missing repository.url property in package.json"); if (!json.categories || json.categories.length == 0) return new Error("ERROR: At least one category is required in package.json"); + if (!json.permissions || !json.permissions.match(/org|world/)) + return new Error("ERROR: Permissions must be 'org' or 'world'"); } function publish(options, callback) { @@ -273,6 +281,11 @@ define(function(require, exports, module) { return callback(new Error("ERROR: Could not parse package.json: ", e.message)); } + console.log("Permissions are: ", json.permissions); + console.log("Data is: ", data); + json = addMissingValues(json); + + console.log("Permissions are: ", json.permissions); var validationError = validateConfig(json); if (validationError) return callback(validationError); @@ -694,7 +707,7 @@ define(function(require, exports, module) { description: description, owner_type: "user", // @TODO implement this when adding orgs owner_id: parseInt(user.id), - permissions: json.permissions || "world", + permissions: json.permissions, categories: json.categories, repository: json.repository, longname: json.longname, diff --git a/plugins/c9.cli.publish/publish_test.js b/plugins/c9.cli.publish/publish_test.js index a9abc778..2eb96fff 100644 --- a/plugins/c9.cli.publish/publish_test.js +++ b/plugins/c9.cli.publish/publish_test.js @@ -62,7 +62,7 @@ describe("cli.publish", function(){ "description": "", "star_count": 0, "star_total": 0, - + "installs": 0, "screenshots": [ // TODO Screenshots are broken @@ -93,6 +93,14 @@ describe("cli.publish", function(){ }); }); + it("should be fine if json.permissions is missing as it defaults to world", function(done){ + fs.writeFileSync(packagePath, packageJson.replace(/"permissions[\s\S]*?\],/, "")); + runCLI("publish", ["major"], function(err, stdout, stderr){ + assert(!err, err); + done(); + }); + }); + it("should warn if the package.json is missing", function(done){ fs.unlinkSync(packagePath); runCLI("publish", ["major"], function(err, stdout, stderr){ @@ -142,6 +150,16 @@ describe("cli.publish", function(){ done(); }); }); + it("should fail if json.permissions is not org or world", function(done){ + var parsedJson = JSON.parse(packageJson); + parsedJson.permissions = "notvalid"; + fs.writeFileSync(packagePath, JSON.stringify(parsedJson)); + runCLI("publish", ["major"], function(err, stdout, stderr){ + console.log("stdout: ", stdout) + expect(stderr).to.match(/ERROR: Permissions must be/); + done(); + }); + }); it("should warn if a plugin is not listed in the package.json", function(done){ fs.writeFileSync(packagePath, packageJson.replace('"example": {}', '')); runCLI("publish", ["major"], function(err, stdout, stderr){ From cabb09ee4e4bcb096b000a4a8bf7dba056b4b2de Mon Sep 17 00:00:00 2001 From: Matthijs van Henten Date: Mon, 19 Oct 2015 14:34:19 +0000 Subject: [PATCH 199/430] WIP use formatting foo --- package.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package.json b/package.json index dcb1705e..c96b4d4a 100644 --- a/package.json +++ b/package.json @@ -108,6 +108,8 @@ "c9.ide.save": "#e00549cb0f", "c9.ide.scm": "#38d2b48b31", "c9.ide.terminal.monitor": "#b76f1c9f24", + "c9.ide.test": "#d312a01ac6", + "c9.ide.test.mocha": "#79ff886c04", "c9.ide.theme.flat": "#2de8414db7", "c9.ide.threewaymerge": "#229382aa0b", "c9.ide.undo": "#b028bcb4d5", From 043984c8e1dc2ea96cca39f25f8971395fe49efe Mon Sep 17 00:00:00 2001 From: Fabian Jakobs Date: Mon, 19 Oct 2015 17:22:19 +0200 Subject: [PATCH 200/430] Revert "Put user content on a different domain" --- node_modules/c9/object.js | 9 --------- node_modules/c9/string.js | 9 --------- node_modules/c9/urls.js | 14 ++++---------- plugins/c9.preview/preview.handler.js | 13 +++---------- server.js | 10 ++++++---- 5 files changed, 13 insertions(+), 42 deletions(-) delete mode 100644 node_modules/c9/object.js diff --git a/node_modules/c9/object.js b/node_modules/c9/object.js deleted file mode 100644 index 875dc338..00000000 --- a/node_modules/c9/object.js +++ /dev/null @@ -1,9 +0,0 @@ -/* - * Swap keys and values of an object - */ -exports.invert = function(obj) { - return Object.keys(obj).reduce(function(res, key) { - res[obj[key]] = key; - return res; - }, {}); -}; \ No newline at end of file diff --git a/node_modules/c9/string.js b/node_modules/c9/string.js index 2a28f65c..5e3714ce 100644 --- a/node_modules/c9/string.js +++ b/node_modules/c9/string.js @@ -43,14 +43,5 @@ exports.repeat = function(str, times) { exports.count = function(str, substr){ return str.split(substr).length - 1; }; - -exports.endsWith = function(subjectString, searchString, position) { - if (typeof position !== 'number' || !isFinite(position) || Math.floor(position) !== position || position > subjectString.length) { - position = subjectString.length; - } - position -= searchString.length; - var lastIndex = subjectString.indexOf(searchString, position); - return lastIndex !== -1 && lastIndex === position; -}; }); \ No newline at end of file diff --git a/node_modules/c9/urls.js b/node_modules/c9/urls.js index 8f5fc472..a1b000af 100644 --- a/node_modules/c9/urls.js +++ b/node_modules/c9/urls.js @@ -22,14 +22,6 @@ function main(options, imports, register) { }); } -plugin.getHost = function(req) { - return (req.headers && req.headers.host - || req.host - || req.url && req.url.replace(/^https?:\/\/([^/]*).*/, "$1") - || req - ); -}; - /** * Get a desired base URL, given some context. * @@ -38,8 +30,10 @@ plugin.getHost = function(req) { * @param {String} targetBaseUrlPattern The target URL pattern, e.g. https://$DOMAIN */ plugin.getBaseUrl = function(req, sourceBaseUrlPattern, targetBaseUrlPattern) { - var sourceHost = plugin.getHost(req); - + var sourceHost = req.headers && req.headers.host + || req.host + || req.url && req.url.replace(/^https?:\/\/([^/]*).*/, "$1") + || req; if (typeof sourceHost !== "string") throw new Error("Not a valid request object: " + req); if (!sourceBaseUrlPattern) diff --git a/plugins/c9.preview/preview.handler.js b/plugins/c9.preview/preview.handler.js index 3bf1f351..d59b24bd 100644 --- a/plugins/c9.preview/preview.handler.js +++ b/plugins/c9.preview/preview.handler.js @@ -39,13 +39,7 @@ define(function(require, exports, module) { session.ws = {}; req.projectSession = session.ws[ws]; - - if ( - !req.projectSession || - !req.projectSession.expires || - req.projectSession.expires <= Date.now() || - req.projectSession.uid != req.user.id - ) { + if (!req.projectSession || !req.projectSession.expires || req.projectSession.expires <= Date.now()) { req.projectSession = session.ws[ws] = { expires: Date.now() + 10000 }; @@ -83,7 +77,6 @@ define(function(require, exports, module) { } req.projectSession.role = role; req.projectSession.pid = project.id; - req.projectSession.uid = req.user.id; var type = project.scm; req.projectSession.type = type; @@ -144,8 +137,8 @@ define(function(require, exports, module) { var path = req.params.path; var url = req.proxyUrl + path; - if (req.user.code) - url += "?access_token=" + encodeURIComponent(req.user.code); + if (req.session.token) + url += "?access_token=" + encodeURIComponent(req.session.token.id || req.session.token); var parsedUrl = parseUrl(url); var httpModule = parsedUrl.protocol == "https:" ? https : http; diff --git a/server.js b/server.js index 3c8463e9..2711230c 100755 --- a/server.js +++ b/server.js @@ -23,12 +23,14 @@ var DEFAULT_CONFIG = "s"; var DEFAULT_SETTINGS = getDefaultSettings(); var shortcuts = { - "dev" : ["ide", "preview", "user-content", "vfs", "api", "sapi", "proxy", "redis", "profile", "oldclient", "homepage", "apps-proxy", "-s", "devel"], - "odev" : ["ide", "preview", "user-content", "vfs", "api", "proxy", "oldclient", "homepage", "apps-proxy", "profile", "worker", "-s", "onlinedev"], - "beta" : ["ide", "preview", "user-content", "vfs", "proxy", "-s", "beta"], + "dev" : ["ide", "preview", "vfs", "api", "sapi", "proxy", "redis", "profile", "oldclient", "homepage", "apps-proxy", "-s", "devel"], + "odev" : ["ide", "preview", "vfs", "api", "proxy", "oldclient", "homepage", "apps-proxy", "profile", "worker", "-s", "onlinedev"], + "bill" : ["ide", "preview", "vfs", "api", "proxy", "oldclient", "homepage", "apps-proxy", "profile", "-s", "billing"], + "beta" : ["ide", "preview", "vfs", "proxy", "-s", "beta"], + "ci" : ["ide", "preview", "vfs", "proxy", "-s", "ci"], "s" : ["standalone", "-s", "standalone"] }; -var delayLoadConfigs = ["preview", "user-content", "api", "oldclient", "apps-proxy", "worker"]; +var delayLoadConfigs = ["preview", "api", "oldclient", "apps-proxy", "worker"]; module.exports = main; From 374205d1e3439d7baeda759097eadac7dc61de01 Mon Sep 17 00:00:00 2001 From: Dana Date: Mon, 19 Oct 2015 16:22:43 +0000 Subject: [PATCH 201/430] Add further filtering client side --- node_modules/c9/has-internal-domain.js | 37 ++++++++++++++++---------- package.json | 2 ++ 2 files changed, 25 insertions(+), 14 deletions(-) diff --git a/node_modules/c9/has-internal-domain.js b/node_modules/c9/has-internal-domain.js index cfcd29c3..55f66c95 100644 --- a/node_modules/c9/has-internal-domain.js +++ b/node_modules/c9/has-internal-domain.js @@ -1,15 +1,24 @@ -var _ = require("lodash"); - - -var internalDomain = ['c9.io', 'clou9beta.com']; - -function hasInternalDomain(email) { - if (!email) return false; - - var emailElements = email.split("@"); - var emailDomain = emailElements[emailElements.length - 1]; - - return _.contains(internalDomain, emailDomain); +if (define === undefined) { + var define = function(fn) { + fn(require, exports, module); + }; } - -module.exports = hasInternalDomain; \ No newline at end of file + +define(function(require, exports, module) { + "use strict"; + + var _ = require("lodash"); + + var internalDomain = ['c9.io', 'clou9beta.com']; + + function hasInternalDomain(email) { + if (!email) return false; + + var emailElements = email.split("@"); + var emailDomain = emailElements[emailElements.length - 1]; + + return _.contains(internalDomain, emailDomain); + } + + module.exports = hasInternalDomain; +}); \ No newline at end of file diff --git a/package.json b/package.json index 45971115..bc8bc99d 100644 --- a/package.json +++ b/package.json @@ -108,6 +108,8 @@ "c9.ide.save": "#e00549cb0f", "c9.ide.scm": "#38d2b48b31", "c9.ide.terminal.monitor": "#b76f1c9f24", + "c9.ide.test": "#d312a01ac6", + "c9.ide.test.mocha": "#79ff886c04", "c9.ide.theme.flat": "#2de8414db7", "c9.ide.threewaymerge": "#229382aa0b", "c9.ide.undo": "#b028bcb4d5", From 699e96e85de2ecdfb7cd2ea640a4bae7d8a74b9c Mon Sep 17 00:00:00 2001 From: c9bot Date: Mon, 19 Oct 2015 18:36:22 +0200 Subject: [PATCH 202/430] c9-auto-bump 3.1.34 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 049a7a7d..1b933791 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.33", + "version": "3.1.34", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From ea5d931e1563ea8f4ff91ed3dbea6b674c7a3456 Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Mon, 19 Oct 2015 10:57:28 -0700 Subject: [PATCH 203/430] Allow beautify to be called with a string. Other small supportive fixes --- package.json | 4 +++- plugins/c9.ide.editors/editors.js | 21 ++++++++++++++++++++- plugins/c9.ide.editors/tab.js | 3 ++- plugins/c9.ide.editors/tabmanager.js | 7 +------ plugins/c9.ide.editors/undomanager.js | 8 +++++--- plugins/c9.ide.ui/widgets.tree.js | 5 +++-- 6 files changed, 34 insertions(+), 14 deletions(-) diff --git a/package.json b/package.json index 3f643434..51ab32d1 100644 --- a/package.json +++ b/package.json @@ -85,7 +85,7 @@ "c9.ide.configuration": "#a9066299a2", "c9.ide.dialog.wizard": "#7667ec79a8", "c9.ide.fontawesome": "#781602c5d8", - "c9.ide.format": "#b0bb91a623", + "c9.ide.format": "#33ebd01914", "c9.ide.help.support": "#e95f98f87c", "c9.ide.imgeditor": "#66a9733dc1", "c9.ide.immediate": "#18c23aa730", @@ -108,6 +108,8 @@ "c9.ide.save": "#e00549cb0f", "c9.ide.scm": "#38d2b48b31", "c9.ide.terminal.monitor": "#b76f1c9f24", + "c9.ide.test": "#d312a01ac6", + "c9.ide.test.mocha": "#79ff886c04", "c9.ide.theme.flat": "#2de8414db7", "c9.ide.threewaymerge": "#229382aa0b", "c9.ide.undo": "#b028bcb4d5", diff --git a/plugins/c9.ide.editors/editors.js b/plugins/c9.ide.editors/editors.js index 4068104d..510e3273 100644 --- a/plugins/c9.ide.editors/editors.js +++ b/plugins/c9.ide.editors/editors.js @@ -10,6 +10,9 @@ define(function(require, module, exports) { var Plugin = imports.Plugin; var menus = imports.menus; + var extname = require("path").extname; + var basename = require("path").basename; + /***** Initialization *****/ var plugin = new Plugin("Ajax.org", main.consumes); @@ -54,9 +57,20 @@ define(function(require, module, exports) { return editor; } + function editorSupportsFile(type, path) { + var extensions = findEditor(type).fileExtensions; + var ext = extname(path).substr(1).toLowerCase(); + var filename = basename(path).toLowerCase(); + return ~extensions.indexOf(path) + || ~extensions.indexOf(filename) + || ~extensions.indexOf(ext) ? true : false; + } + function findEditorByFilename(fn) { - var ext = fn.substr(fn.lastIndexOf(".") + 1).toLowerCase(); + var ext = extname(fn).substr(1).toLowerCase(); + var filename = basename(fn).toLowerCase(); var editor = fileExtensions[fn] && fileExtensions[fn][0] + || fileExtensions[filename] && fileExtensions[filename][0] || fileExtensions[ext] && fileExtensions[ext][0] || defaultEditor; @@ -245,6 +259,11 @@ define(function(require, module, exports) { */ findEditorByFilename: findEditorByFilename, + /** + * + */ + editorSupportsFile: editorSupportsFile, + /** * Create an editor instance based on it's type * @param {String} type The type of the editor to create diff --git a/plugins/c9.ide.editors/tab.js b/plugins/c9.ide.editors/tab.js index 1c197575..11c18440 100644 --- a/plugins/c9.ide.editors/tab.js +++ b/plugins/c9.ide.editors/tab.js @@ -7,6 +7,7 @@ define(function(require, module, exports) { var Plugin = imports.Plugin; var Document = imports.Document; var ui = imports.ui; + var alert = imports["dialog.alert"].show; var stylesheet = ui.createStylesheet(); @@ -249,7 +250,7 @@ define(function(require, module, exports) { // var lastType = tab.editorType; amlPane.cloud9pane.createEditor(type, function(err, editor) { var info = {}; - if (editor.isValid(amlTab.document, info) === false) { + if (editor.isValid(amlTab.cloud9tab.document, info) === false) { alert( info.title || "Could not switch editor", info.head || "Could not switch editor because this document is invalid.", diff --git a/plugins/c9.ide.editors/tabmanager.js b/plugins/c9.ide.editors/tabmanager.js index 2d76dbbf..6e9c561b 100644 --- a/plugins/c9.ide.editors/tabmanager.js +++ b/plugins/c9.ide.editors/tabmanager.js @@ -186,13 +186,8 @@ define(function(require, module, exports) { group = node.group; var path = focussedTab && focussedTab.path || ""; - var ext = path.substr(path.lastIndexOf(".") + 1); - var type = node.value; - var extensions = editors.findEditor(type).fileExtensions; - var isAvailable = editors.defaultEditor == type - || extensions.indexOf(ext.toLowerCase()) > -1 - || !extensions.length; + var isAvailable = editors.editorSupportsFile(type, path); node.setAttribute("disabled", !isAvailable); }); diff --git a/plugins/c9.ide.editors/undomanager.js b/plugins/c9.ide.editors/undomanager.js index d3fabb20..a275e5a5 100644 --- a/plugins/c9.ide.editors/undomanager.js +++ b/plugins/c9.ide.editors/undomanager.js @@ -116,9 +116,11 @@ define(function(require, module, exports) { return { mark: mark, position: position, - stack: stack.map(function(item) { - return item.getState ? item.getState() : item; - }) + stack: stack + .filter(function(item){ return item; }) + .map(function(item) { + return item.getState ? item.getState() : item; + }) }; } diff --git a/plugins/c9.ide.ui/widgets.tree.js b/plugins/c9.ide.ui/widgets.tree.js index 9781c2b1..3970bfbb 100644 --- a/plugins/c9.ide.ui/widgets.tree.js +++ b/plugins/c9.ide.ui/widgets.tree.js @@ -16,8 +16,9 @@ define(function(require, exports, module) { if (!options.baseName) options.baseName = "tree"; - if (!options.model) { - var model = new TreeModel(); + var model = options.model; + if (!model) { + model = new TreeModel(); options.model = model; } From f2d17762beea96d6895e508af1ccd1af6558aa4a Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Mon, 19 Oct 2015 14:35:56 -0700 Subject: [PATCH 204/430] Added merge tool plugin --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 51ab32d1..9b027a8f 100644 --- a/package.json +++ b/package.json @@ -106,7 +106,7 @@ "c9.ide.run.build": "#0598fff697", "c9.ide.run.debug.xdebug": "#61dcbd0180", "c9.ide.save": "#e00549cb0f", - "c9.ide.scm": "#38d2b48b31", + "c9.ide.scm": "#7b44918058", "c9.ide.terminal.monitor": "#b76f1c9f24", "c9.ide.test": "#d312a01ac6", "c9.ide.test.mocha": "#79ff886c04", From 01e56ab0afe1f66606a08308bdd73d051782fa0a Mon Sep 17 00:00:00 2001 From: Matthijs van Henten Date: Mon, 19 Oct 2015 22:30:12 +0000 Subject: [PATCH 205/430] restructure not to be architect plugin --- node_modules/c9/urls.js | 60 +++++++++++++++++++++-------------------- package.json | 2 ++ 2 files changed, 33 insertions(+), 29 deletions(-) diff --git a/node_modules/c9/urls.js b/node_modules/c9/urls.js index a1b000af..a4ea6e7d 100644 --- a/node_modules/c9/urls.js +++ b/node_modules/c9/urls.js @@ -6,20 +6,19 @@ * @copyright 2015, Ajax.org B.V. */ -var plugin = module.exports = main; var assert = require("assert"); - -plugin.consumes = ["error.logger"]; -plugin.provides = ["urls"]; -var errorLogger = mockErrorLogger; +function getHost(req) { + if (req.headers) + return req.headers.host; -function main(options, imports, register) { - errorLogger = imports["error.logger"]; - - register(null, { - urls: plugin - }); + if (req.host) + return req.host; + + if (req.url) + return req.url.replace(/^https?:\/\/([^/]*).*/, "$1"); + + return req; } /** @@ -29,13 +28,12 @@ function main(options, imports, register) { * @param {String} [sourceUrlPattern] The source URL pattern, e.g. https://ide.$DOMAIN * @param {String} targetBaseUrlPattern The target URL pattern, e.g. https://$DOMAIN */ -plugin.getBaseUrl = function(req, sourceBaseUrlPattern, targetBaseUrlPattern) { - var sourceHost = req.headers && req.headers.host - || req.host - || req.url && req.url.replace(/^https?:\/\/([^/]*).*/, "$1") - || req; +function getBaseUrl(req, sourceBaseUrlPattern, targetBaseUrlPattern) { + var sourceHost = getHost(req); + if (typeof sourceHost !== "string") throw new Error("Not a valid request object: " + req); + if (!sourceBaseUrlPattern) throw new Error("getBaseUrl() requires at least two arguments"); @@ -46,24 +44,29 @@ plugin.getBaseUrl = function(req, sourceBaseUrlPattern, targetBaseUrlPattern) { .replace("$DOMAIN", "([^/]+)"); var hostMatch = sourceHost.match(sourceHostMatcher); var targetHost; + if (hostMatch) { targetHost = hostMatch[1]; } else { - errorLogger.log(new Error("Could not construct URL: request host " - + sourceHost + " should match " + sourceBaseUrlPattern)); + console.error(new Error("Could not construct URL: request host " + sourceHost + " should match " + sourceBaseUrlPattern)); + targetHost = "c9.io"; } - + if (targetHost.match(/^(ide|vfs)./) && !targetBaseUrlPattern) - errorLogger.log(new Error("Warning: no targetBaseUrlPattern specified, will stay at " + targetHost), { sourceBaseUrlPattern: sourceBaseUrlPattern }); + console.error(new Error("Warning: no targetBaseUrlPattern specified, will stay at " + targetHost), { + sourceBaseUrlPattern: sourceBaseUrlPattern + }); + if (targetHost.match(/^(ide|vfs)./)) - console.trace("Warning: possibly incorrect baseUrl constructed, with 'ide.' in the hostname: " + targetHost); + console.trace("Warning: possibly incorrect baseUrl constructed, with 'ide.' in the hostname: " + targetHost); + return replaceDomain(targetBaseUrlPattern || sourceBaseUrlPattern, targetHost) .replace(/\/$/, ""); -}; +} -plugin.replaceDomains = function(settings, domains) { +function replaceDomains(settings, domains) { domains = Array.isArray(domains) ? domains : domains.split(","); var primaryDomain = domains[0]; settings.domains = domains; @@ -85,14 +88,13 @@ plugin.replaceDomains = function(settings, domains) { }); } } -}; +} function replaceDomain(url, domain) { return url.replace("$DOMAIN", domain); } -function mockErrorLogger() {} -mockErrorLogger.log = function(err) { - console.error(err.stack); -}; -plugin.mockErrorLogger = mockErrorLogger; +module.exports = { + replaceDomains: replaceDomains, + getBaseUrl: getBaseUrl, +}; \ No newline at end of file diff --git a/package.json b/package.json index 1b933791..ce62d692 100644 --- a/package.json +++ b/package.json @@ -108,6 +108,8 @@ "c9.ide.save": "#e00549cb0f", "c9.ide.scm": "#38d2b48b31", "c9.ide.terminal.monitor": "#b76f1c9f24", + "c9.ide.test": "#d312a01ac6", + "c9.ide.test.mocha": "#79ff886c04", "c9.ide.theme.flat": "#2de8414db7", "c9.ide.threewaymerge": "#229382aa0b", "c9.ide.undo": "#b028bcb4d5", From 1feee3bff0136faa0cebf75d54c5aa50e50b7e11 Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Mon, 19 Oct 2015 17:20:18 -0700 Subject: [PATCH 206/430] Tweaks to the merge tool --- configs/client-default.js | 1 + package.json | 2 +- plugins/c9.ide.editors/document.js | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/configs/client-default.js b/configs/client-default.js index c71e359d..a3dbe949 100644 --- a/configs/client-default.js +++ b/configs/client-default.js @@ -712,6 +712,7 @@ module.exports = function(options) { "plugins/c9.ide.scm/log", "plugins/c9.ide.scm/git", "plugins/c9.ide.scm/editor", + "plugins/c9.ide.scm/mergetool", ]; if (!options.sdk) { diff --git a/package.json b/package.json index 9b027a8f..c0a63e67 100644 --- a/package.json +++ b/package.json @@ -106,7 +106,7 @@ "c9.ide.run.build": "#0598fff697", "c9.ide.run.debug.xdebug": "#61dcbd0180", "c9.ide.save": "#e00549cb0f", - "c9.ide.scm": "#7b44918058", + "c9.ide.scm": "#62011267ea", "c9.ide.terminal.monitor": "#b76f1c9f24", "c9.ide.test": "#d312a01ac6", "c9.ide.test.mocha": "#79ff886c04", diff --git a/plugins/c9.ide.editors/document.js b/plugins/c9.ide.editors/document.js index 6c7174c5..e8b8f33d 100644 --- a/plugins/c9.ide.editors/document.js +++ b/plugins/c9.ide.editors/document.js @@ -55,6 +55,7 @@ define(function(require, module, exports) { function setBookmarkedValue(value, cleansed) { if (plugin.value == value) { + recentValue = value; undoManager.bookmark(); return; } From ac33a795496ba2dc7333dc2e78f5b2bba4b9a421 Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Mon, 19 Oct 2015 19:05:10 -0700 Subject: [PATCH 207/430] documentation update --- plugins/c9.fs/fs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/c9.fs/fs.js b/plugins/c9.fs/fs.js index c71fc4b3..04e2d42d 100644 --- a/plugins/c9.fs/fs.js +++ b/plugins/c9.fs/fs.js @@ -347,7 +347,7 @@ define(function(require, exports, module) { * @param {String} path the path of the directory to get the listing from * @param {Function} callback called after the file listing is read * @param {Error} callback.err the error information returned by the operation - * @param {String[]} callback.files a list of strings containing the filenames of the files in the directory + * @param {Stat[]} callback.files a list of stat objects (See fs.stat) containing the file information of the files in the directory * @fires error */ readdir: api.readdir, From 6efdb109aa02bcbf775861085ddf2b44a2d82998 Mon Sep 17 00:00:00 2001 From: c9bot Date: Tue, 20 Oct 2015 09:57:24 +0200 Subject: [PATCH 208/430] c9-auto-bump 3.1.35 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1b933791..0817ae4c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.34", + "version": "3.1.35", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 19fbdda2dddf84f9fb5340fe31021616e7e02e19 Mon Sep 17 00:00:00 2001 From: c9bot Date: Tue, 20 Oct 2015 10:16:30 +0200 Subject: [PATCH 209/430] c9-auto-bump 3.1.36 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0817ae4c..b54817a5 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.35", + "version": "3.1.36", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 5fa6a0ca78e44cbb8e753e80400d96eae43509b7 Mon Sep 17 00:00:00 2001 From: Lennart Kats Date: Tue, 20 Oct 2015 10:24:15 +0200 Subject: [PATCH 210/430] Add documentation or some attempt at documentation --- node_modules/c9/urls.js | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/node_modules/c9/urls.js b/node_modules/c9/urls.js index 8f5fc472..5166f944 100644 --- a/node_modules/c9/urls.js +++ b/node_modules/c9/urls.js @@ -33,9 +33,27 @@ plugin.getHost = function(req) { /** * Get a desired base URL, given some context. * - * @param req The current request object or URL - * @param {String} [sourceUrlPattern] The source URL pattern, e.g. https://ide.$DOMAIN - * @param {String} targetBaseUrlPattern The target URL pattern, e.g. https://$DOMAIN + * Example for a request coming into the IDE service: + * + * ``` + * getBaseUrl(req, "https://ide.$DOMAIN", "https://preview.$DOMAIN"); + * ``` + * + * The above example will determine the domain name from the request, + * by stripping off the "https://ide." part. So, for a domain like + * "https://ide.c9.io" we'll get "c9.io". For a domain like + * "https://ide.dogfooding-lennartcl.c9.io" we'll get dogfooding-lennartcl.c9.io. + * If there is no match, a warning is shown. The target pattern + * is used to construct the resulting URL, e.g. https://preview.c9.io. + * + * @param req + * The current request object or URL + * @param {String} [sourceUrlPattern] + * The URL pattern of the current service, e.g. https://ide.$DOMAIN if + * we are getting an incoming request for the IDE service + * @param {String} targetBaseUrlPattern + * The URL pattern of the target service. E.g., if we want to + * construct the base URL of the API service, this might be https://api.$DOMAIN. */ plugin.getBaseUrl = function(req, sourceBaseUrlPattern, targetBaseUrlPattern) { var sourceHost = plugin.getHost(req); From 8b9d511498180df3939cfee2094c0f61f89f6209 Mon Sep 17 00:00:00 2001 From: c9bot Date: Tue, 20 Oct 2015 12:29:23 +0200 Subject: [PATCH 211/430] c9-auto-bump 3.1.37 --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index b54817a5..f89b7480 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.36", + "version": "3.1.37", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", @@ -108,6 +108,8 @@ "c9.ide.save": "#e00549cb0f", "c9.ide.scm": "#38d2b48b31", "c9.ide.terminal.monitor": "#b76f1c9f24", + "c9.ide.test": "#d312a01ac6", + "c9.ide.test.mocha": "#79ff886c04", "c9.ide.theme.flat": "#2de8414db7", "c9.ide.threewaymerge": "#229382aa0b", "c9.ide.undo": "#b028bcb4d5", From 2522113afb8453c978212261cca42f6db3f3a15f Mon Sep 17 00:00:00 2001 From: Tim Robinson Date: Tue, 20 Oct 2015 10:49:21 +0000 Subject: [PATCH 212/430] Making onlinedev have separate eu and usw regions. Renaming all odev to onlinedev across the codebase to be consistent with hostnames --- package.json | 2 ++ server.js | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index b54817a5..539c4273 100644 --- a/package.json +++ b/package.json @@ -108,6 +108,8 @@ "c9.ide.save": "#e00549cb0f", "c9.ide.scm": "#38d2b48b31", "c9.ide.terminal.monitor": "#b76f1c9f24", + "c9.ide.test": "#d312a01ac6", + "c9.ide.test.mocha": "#79ff886c04", "c9.ide.theme.flat": "#2de8414db7", "c9.ide.threewaymerge": "#229382aa0b", "c9.ide.undo": "#b028bcb4d5", diff --git a/server.js b/server.js index 2711230c..d61f0b82 100755 --- a/server.js +++ b/server.js @@ -24,12 +24,13 @@ var DEFAULT_SETTINGS = getDefaultSettings(); var shortcuts = { "dev" : ["ide", "preview", "vfs", "api", "sapi", "proxy", "redis", "profile", "oldclient", "homepage", "apps-proxy", "-s", "devel"], - "odev" : ["ide", "preview", "vfs", "api", "proxy", "oldclient", "homepage", "apps-proxy", "profile", "worker", "-s", "onlinedev"], + "onlinedev" : ["ide", "preview", "vfs", "api", "proxy", "oldclient", "homepage", "apps-proxy", "profile", "worker", "-s", "onlinedev"], "bill" : ["ide", "preview", "vfs", "api", "proxy", "oldclient", "homepage", "apps-proxy", "profile", "-s", "billing"], "beta" : ["ide", "preview", "vfs", "proxy", "-s", "beta"], "ci" : ["ide", "preview", "vfs", "proxy", "-s", "ci"], "s" : ["standalone", "-s", "standalone"] }; +shortcuts.odev = shortcuts.onlinedev; // For backwards compatibility, if you see this in 2016 remove this line var delayLoadConfigs = ["preview", "api", "oldclient", "apps-proxy", "worker"]; module.exports = main; From 6ca3a65c23fdd2a9c6993e794caab74a4621a0b7 Mon Sep 17 00:00:00 2001 From: c9bot Date: Tue, 20 Oct 2015 12:52:52 +0200 Subject: [PATCH 213/430] c9-auto-bump 3.1.38 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f89b7480..57d90159 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.37", + "version": "3.1.38", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 8456331c43d874b826133841887894326937273d Mon Sep 17 00:00:00 2001 From: c9bot Date: Tue, 20 Oct 2015 13:06:07 +0200 Subject: [PATCH 214/430] c9-auto-bump 3.1.39 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 57d90159..573d009c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.38", + "version": "3.1.39", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 5d8e62d70103bb9b8d41c508e62cdf24aa8f3684 Mon Sep 17 00:00:00 2001 From: c9bot Date: Tue, 20 Oct 2015 13:08:25 +0200 Subject: [PATCH 215/430] c9-auto-bump 3.1.40 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 573d009c..0965ad4b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.39", + "version": "3.1.40", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From ba926cb4cdf9222806c47b3ab10ab81f0e14221e Mon Sep 17 00:00:00 2001 From: c9bot Date: Tue, 20 Oct 2015 13:09:40 +0200 Subject: [PATCH 216/430] c9-auto-bump 3.1.41 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0965ad4b..322b8fb4 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.40", + "version": "3.1.41", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From c9261ae7cdc50663e20c3d7623c1b4b418b97f5b Mon Sep 17 00:00:00 2001 From: c9bot Date: Tue, 20 Oct 2015 14:19:57 +0200 Subject: [PATCH 217/430] c9-auto-bump 3.1.42 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 322b8fb4..64a5bf07 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.41", + "version": "3.1.42", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From c449960f158f178b9b9f6b6c585933a75cf381d4 Mon Sep 17 00:00:00 2001 From: c9bot Date: Tue, 20 Oct 2015 14:21:44 +0200 Subject: [PATCH 218/430] c9-auto-bump 3.1.43 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 64a5bf07..ec7a3de8 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.42", + "version": "3.1.43", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 123e7c9eaa0fbd2d6ecfe2ba935b0363d12c8b02 Mon Sep 17 00:00:00 2001 From: c9bot Date: Tue, 20 Oct 2015 14:57:16 +0200 Subject: [PATCH 219/430] c9-auto-bump 3.1.44 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ec7a3de8..0f0b5240 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.43", + "version": "3.1.44", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From bbefb87e14b332d09f8b148c7fea627562e6e19a Mon Sep 17 00:00:00 2001 From: c9bot Date: Tue, 20 Oct 2015 15:27:56 +0200 Subject: [PATCH 220/430] c9-auto-bump 3.1.45 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0f0b5240..280ebf62 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.44", + "version": "3.1.45", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 074fbb63d0bd948cb144dff17250ebb18bffa2fe Mon Sep 17 00:00:00 2001 From: c9bot Date: Tue, 20 Oct 2015 16:06:37 +0200 Subject: [PATCH 221/430] c9-auto-bump 3.1.46 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 280ebf62..7195fe59 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.45", + "version": "3.1.46", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 88f692d35f530348d58536c97668b717965dc567 Mon Sep 17 00:00:00 2001 From: c9bot Date: Tue, 20 Oct 2015 16:16:09 +0200 Subject: [PATCH 222/430] c9-auto-bump 3.1.47 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7195fe59..dcfb8000 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.46", + "version": "3.1.47", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From dcf4a08e2c0a9fca7b3aa0e0945a6f673ed1ae93 Mon Sep 17 00:00:00 2001 From: c9bot Date: Tue, 20 Oct 2015 17:09:17 +0200 Subject: [PATCH 223/430] c9-auto-bump 3.1.48 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index dcfb8000..5209a6f3 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.47", + "version": "3.1.48", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 7dd68c1f4e44b42e9c089473acf89874fd4ce2b7 Mon Sep 17 00:00:00 2001 From: c9bot Date: Tue, 20 Oct 2015 17:58:07 +0200 Subject: [PATCH 224/430] c9-auto-bump 3.1.49 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 5209a6f3..688cf1bd 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.48", + "version": "3.1.49", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 9d7b0700d8df23575aa01c07f1f54792d2c0d98a Mon Sep 17 00:00:00 2001 From: c9bot Date: Tue, 20 Oct 2015 18:05:33 +0200 Subject: [PATCH 225/430] c9-auto-bump 3.1.50 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 688cf1bd..7c034269 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.49", + "version": "3.1.50", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 934b0bc5bc0c4ac1ae96b46cf91fefa2001fa9a2 Mon Sep 17 00:00:00 2001 From: c9bot Date: Tue, 20 Oct 2015 20:45:42 +0200 Subject: [PATCH 226/430] c9-auto-bump 3.1.51 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 33f98862..c0aaaf89 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.50", + "version": "3.1.51", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From b61039216c8ab2c639b1fb8d1b8ca817bedd22b3 Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Tue, 20 Oct 2015 18:53:03 +0000 Subject: [PATCH 227/430] Small fixes to settings and forms --- plugins/c9.core/settings.js | 7 ++++--- plugins/c9.ide.ui/forms.js | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/plugins/c9.core/settings.js b/plugins/c9.core/settings.js index 27bee4f8..0331c92c 100644 --- a/plugins/c9.core/settings.js +++ b/plugins/c9.core/settings.js @@ -391,13 +391,14 @@ define(function(require, exports, module) { } if (hash[key] === value) return; - + + var oldValue = hash[key]; hash[key] = value; // Tell everyone this property changed - emit(parts.join("/"), value); + emit(parts.join("/"), value, oldValue); // Tell everyone it's parent changed - emit(query, value); + emit(query, value, oldValue); // Tell everyone the root type changed (user, project, state) scheduleAnnounce(parts[0], userData); diff --git a/plugins/c9.ide.ui/forms.js b/plugins/c9.ide.ui/forms.js index ba36edb7..35ee4fb4 100644 --- a/plugins/c9.ide.ui/forms.js +++ b/plugins/c9.ide.ui/forms.js @@ -421,8 +421,8 @@ define(function(require, exports, module) { }); } - if (options.name) { - node.setAttribute("id", options.name); + if (options.id || options.name) { + node.setAttribute("id", options.id || options.name); elements[node.name] = node; } From 92142e68ff217450a3d3b00882c3d11c020c3170 Mon Sep 17 00:00:00 2001 From: c9bot Date: Tue, 20 Oct 2015 20:55:28 +0200 Subject: [PATCH 228/430] c9-auto-bump 3.1.52 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index c0aaaf89..0f651fcf 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.51", + "version": "3.1.52", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 646f46fa276fbe93f5f9e34688ab7d472cd06b4e Mon Sep 17 00:00:00 2001 From: nightwing Date: Tue, 20 Oct 2015 23:33:27 +0400 Subject: [PATCH 229/430] update c9.ide.test plugin --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0f651fcf..cb83fdcc 100644 --- a/package.json +++ b/package.json @@ -109,7 +109,7 @@ "c9.ide.scm": "#2398826541", "c9.ide.terminal.monitor": "#b76f1c9f24", "c9.ide.test": "#302388c9eb", - "c9.ide.test.mocha": "#c81861817e", + "c9.ide.test.mocha": "#0e4c8e7409", "c9.ide.theme.flat": "#2de8414db7", "c9.ide.threewaymerge": "#229382aa0b", "c9.ide.undo": "#b028bcb4d5", From 675e2022e6ac6a77526701297caedc71635c88c9 Mon Sep 17 00:00:00 2001 From: c9bot Date: Tue, 20 Oct 2015 21:40:09 +0200 Subject: [PATCH 230/430] c9-auto-bump 3.1.53 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index cb83fdcc..8bcb8adb 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.52", + "version": "3.1.53", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 88aaad4f5ae03394ebb1487c90c170cad541e9dd Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Tue, 20 Oct 2015 14:24:54 -0700 Subject: [PATCH 231/430] Add minwidth/minheight to menu --- package.json | 2 +- plugins/c9.ide.preferences/general.js | 2 +- plugins/c9.ide.ui/menus.js | 14 ++++++++++++++ 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 64f12985..99f3abb6 100644 --- a/package.json +++ b/package.json @@ -105,7 +105,7 @@ "c9.ide.run": "#f360984649", "c9.ide.run.build": "#0598fff697", "c9.ide.run.debug.xdebug": "#61dcbd0180", - "c9.ide.save": "#e00549cb0f", + "c9.ide.save": "#4a4a60a004", "c9.ide.scm": "#573585193a", "c9.ide.terminal.monitor": "#b76f1c9f24", "c9.ide.test": "#302388c9eb", diff --git a/plugins/c9.ide.preferences/general.js b/plugins/c9.ide.preferences/general.js index 1c656659..18114a70 100644 --- a/plugins/c9.ide.preferences/general.js +++ b/plugins/c9.ide.preferences/general.js @@ -16,7 +16,7 @@ define(function(require, exports, module) { /***** Initialization *****/ var plugin = new PreferencePanel("Ajax.org", main.consumes, { - caption: "Settings", + caption: "User Settings", form: true, index: 100 }); diff --git a/plugins/c9.ide.ui/menus.js b/plugins/c9.ide.ui/menus.js index 256a678d..218f369c 100644 --- a/plugins/c9.ide.ui/menus.js +++ b/plugins/c9.ide.ui/menus.js @@ -954,6 +954,8 @@ define(function(require, exports, module) { visible: options.visible, width: options.width, height: options.height, + minWidth: options.minWidth, + minHeight: options.minHeight, "onprop.visible" : function(e) { emit(e.value ? "show" : "hide", lastCoords); checkItems.call(this, e); @@ -1072,6 +1074,18 @@ define(function(require, exports, module) { */ get height(){ return aml && aml.getHeight(); }, set height(value) { aml && aml.setAttribute("height", value); }, + /** + * Specifies the minimal width of the menu + * @property {Number} width + */ + get minWidth(){ return aml && aml.getAttribute("minwidth"); }, + set minWidth(value) { aml && aml.setAttribute("minwidth", value); }, + /** + * Specifies the minimal height of the menu + * @property {Number} height + */ + get minHeight(){ return aml && aml.getAttribute("minheight"); }, + set minHeight(value) { aml && aml.setAttribute("minheight", value); }, /** * The menu items appended to this menu * @property {MenuItem[]} items From ee7678045beaf2739c3e9678096fd4d450eab9a4 Mon Sep 17 00:00:00 2001 From: nightwing Date: Wed, 21 Oct 2015 01:49:05 +0400 Subject: [PATCH 232/430] enable test plugin in sdk --- configs/client-default.js | 32 ++++++++++++++------------------ package.json | 2 +- 2 files changed, 15 insertions(+), 19 deletions(-) diff --git a/configs/client-default.js b/configs/client-default.js index b04c8dbd..ae55ffdb 100644 --- a/configs/client-default.js +++ b/configs/client-default.js @@ -705,6 +705,20 @@ module.exports = function(options) { staticPrefix: staticPrefix + "/plugins/c9.ide.collab/notifications" }, + // Test + "plugins/c9.ide.test/test", + "plugins/c9.ide.test/testpanel", + "plugins/c9.ide.test/testrunner", + { + packagePath: "plugins/c9.ide.test/all", + staticPrefix: staticPrefix + "/plugins/c9.ide.test" + }, + "plugins/c9.ide.test/results", + "plugins/c9.ide.test/coverage", + "plugins/c9.ide.test/coverageview", + + "plugins/c9.ide.test.mocha/mocha", + // git integration "plugins/c9.ide.scm/scm", "plugins/c9.ide.scm/scmpanel", @@ -714,24 +728,6 @@ module.exports = function(options) { "plugins/c9.ide.scm/editor" ]; - if (!options.sdk) { - plugins.push( - // Test - "plugins/c9.ide.test/test", - "plugins/c9.ide.test/testpanel", - "plugins/c9.ide.test/testrunner", - { - packagePath: "plugins/c9.ide.test/all", - staticPrefix: staticPrefix + "/plugins/c9.ide.test" - }, - "plugins/c9.ide.test/results", - "plugins/c9.ide.test/coverage", - "plugins/c9.ide.test/coverageview", - - "plugins/c9.ide.test.mocha/mocha" - ); - } - if (packaging || !devel) { plugins.push({ diff --git a/package.json b/package.json index 8bcb8adb..20bb21e3 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "mkdirp": "~0.3.5", "msgpack-js": "~0.1.1", "msgpack-js-browser": "~0.1.4", - "nak": "", + "nak": "git://github.com/cloud9ide/nak.git#719f2188ec1d8e4ce553286e80737d7e6434d777", "netutil": "~0.0.2", "optimist": "~0.6.0", "qs": "0.6.6", From e3b2897dcfaf7a8de4f95d3716889981f5284dd1 Mon Sep 17 00:00:00 2001 From: c9bot Date: Wed, 21 Oct 2015 00:05:55 +0200 Subject: [PATCH 233/430] c9-auto-bump 3.1.54 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 20bb21e3..3d3712d9 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.53", + "version": "3.1.54", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 5617a809db052c8fcfd813feda50cc2281748c33 Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Tue, 20 Oct 2015 18:18:28 -0700 Subject: [PATCH 234/430] Add dark theme for merge plugin --- package.json | 4 ++-- plugins/c9.nodeapi/events.js | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 99f3abb6..c6769c94 100644 --- a/package.json +++ b/package.json @@ -76,7 +76,7 @@ "c9.ide.ace.emmet": "#6dc4585e02", "c9.ide.ace.gotoline": "#a8ff07c8f4", "c9.ide.ace.keymaps": "#2e3c6e3c8f", - "c9.ide.ace.repl": "#7989bbd07f", + "c9.ide.ace.repl": "#ed708a1b98", "c9.ide.ace.split": "#0ae0151c78", "c9.ide.ace.statusbar": "#d95be89d53", "c9.ide.ace.stripws": "#cf0f42ac59", @@ -106,7 +106,7 @@ "c9.ide.run.build": "#0598fff697", "c9.ide.run.debug.xdebug": "#61dcbd0180", "c9.ide.save": "#4a4a60a004", - "c9.ide.scm": "#573585193a", + "c9.ide.scm": "#d92bb9aeb5", "c9.ide.terminal.monitor": "#b76f1c9f24", "c9.ide.test": "#302388c9eb", "c9.ide.test.mocha": "#c81861817e", diff --git a/plugins/c9.nodeapi/events.js b/plugins/c9.nodeapi/events.js index ecfbd017..ccfe19c9 100644 --- a/plugins/c9.nodeapi/events.js +++ b/plugins/c9.nodeapi/events.js @@ -60,9 +60,6 @@ EventEmitter.prototype.emit = function(type) { if (!this._events) return; - if (arguments[2] === true) - throw new Error("Please use emit.sticky() instead of passing sticky=true for event: " + type); - var handler = this._events[type]; if (!handler) return; From e8719844b26877b52b1f448f1a33a50841532af8 Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Tue, 20 Oct 2015 18:30:06 -0700 Subject: [PATCH 235/430] Run mocha/instanbul in login shell --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index c6769c94..39c46942 100644 --- a/package.json +++ b/package.json @@ -109,7 +109,7 @@ "c9.ide.scm": "#d92bb9aeb5", "c9.ide.terminal.monitor": "#b76f1c9f24", "c9.ide.test": "#302388c9eb", - "c9.ide.test.mocha": "#c81861817e", + "c9.ide.test.mocha": "#55d85ae95e", "c9.ide.theme.flat": "#2de8414db7", "c9.ide.threewaymerge": "#229382aa0b", "c9.ide.undo": "#b028bcb4d5", From 471407be968d5a26a4b7080274ce4546ec695955 Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Tue, 20 Oct 2015 18:41:29 -0700 Subject: [PATCH 236/430] Remove saving coverage info in state as it's already saved on disk --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b21956f2..c1521301 100644 --- a/package.json +++ b/package.json @@ -108,7 +108,7 @@ "c9.ide.save": "#4a4a60a004", "c9.ide.scm": "#d92bb9aeb5", "c9.ide.terminal.monitor": "#b76f1c9f24", - "c9.ide.test": "#302388c9eb", + "c9.ide.test": "#d939644163", "c9.ide.test.mocha": "#f6cc482886", "c9.ide.theme.flat": "#2de8414db7", "c9.ide.threewaymerge": "#229382aa0b", From b8b1fa3dc71eba2a49fcf8831355f98c3baa6cd4 Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Tue, 20 Oct 2015 19:00:43 -0700 Subject: [PATCH 237/430] Move related files menu item to coverage and turn it unto a submenu instead --- package.json | 2 +- plugins/c9.ide.ui/menus.js | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index c1521301..30ee9cae 100644 --- a/package.json +++ b/package.json @@ -108,7 +108,7 @@ "c9.ide.save": "#4a4a60a004", "c9.ide.scm": "#d92bb9aeb5", "c9.ide.terminal.monitor": "#b76f1c9f24", - "c9.ide.test": "#d939644163", + "c9.ide.test": "#ba0ed6e586", "c9.ide.test.mocha": "#f6cc482886", "c9.ide.theme.flat": "#2de8414db7", "c9.ide.threewaymerge": "#229382aa0b", diff --git a/plugins/c9.ide.ui/menus.js b/plugins/c9.ide.ui/menus.js index 218f369c..359af59f 100644 --- a/plugins/c9.ide.ui/menus.js +++ b/plugins/c9.ide.ui/menus.js @@ -942,6 +942,10 @@ define(function(require, exports, module) { return item; } + function remove(item){ + aml.removeChild(item.aml); + } + function show(x, y) { lastCoords = { x : x, y : y }; aml.display(x, y); @@ -1118,6 +1122,12 @@ define(function(require, exports, module) { */ append: append, + /** + * Remove a menu item from this menu + * @param {MenuItem} item The item to remove from this menu. + */ + remove: remove, + /** * Show the menu at the specified position * @param {Number} x The x coordinate specified in pixels from the left of the browser window. From 51fa8287f585c8d9a544aa7a89686e766a712579 Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Tue, 20 Oct 2015 21:29:59 -0700 Subject: [PATCH 238/430] Fix immediate test --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ef2f994b..8d02e115 100644 --- a/package.json +++ b/package.json @@ -88,7 +88,7 @@ "c9.ide.format": "#b0bb91a623", "c9.ide.help.support": "#e95f98f87c", "c9.ide.imgeditor": "#66a9733dc1", - "c9.ide.immediate": "#7370cd6812", + "c9.ide.immediate": "#29fd6d3f51", "c9.ide.installer": "#0fde9f0067", "c9.ide.mount": "#da6ad73c5b", "c9.ide.navigate": "#c191d9b92f", From 29ff4a63086d6c026fa8e83303958df38b62fc2f Mon Sep 17 00:00:00 2001 From: c9bot Date: Wed, 21 Oct 2015 07:50:24 +0200 Subject: [PATCH 239/430] c9-auto-bump 3.1.55 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 30ee9cae..e6b56e6a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.54", + "version": "3.1.55", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From c7441e9dbe73ce7f5d9c8178213e255ee04b78e4 Mon Sep 17 00:00:00 2001 From: c9bot Date: Wed, 21 Oct 2015 09:12:47 +0200 Subject: [PATCH 240/430] c9-auto-bump 3.1.56 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ea0cbbc5..0c4a4bf5 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.55", + "version": "3.1.56", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 1df996ab43164a06d546184976639b42c379e822 Mon Sep 17 00:00:00 2001 From: c9bot Date: Wed, 21 Oct 2015 09:31:09 +0200 Subject: [PATCH 241/430] c9-auto-bump 3.1.57 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0c4a4bf5..119f3589 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.56", + "version": "3.1.57", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 89a44aa84929bcc32065316669ac6add4b317f6d Mon Sep 17 00:00:00 2001 From: c9bot Date: Wed, 21 Oct 2015 10:21:46 +0200 Subject: [PATCH 242/430] c9-auto-bump 3.1.58 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 119f3589..7c45293c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.57", + "version": "3.1.58", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From b31d0808b493c5db27c13ffa6415ee4989150006 Mon Sep 17 00:00:00 2001 From: c9bot Date: Wed, 21 Oct 2015 11:02:28 +0200 Subject: [PATCH 243/430] c9-auto-bump 3.1.59 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7c45293c..222054a9 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.58", + "version": "3.1.59", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 991f6c72f3681ffaf7d36f43c94a7e74ed6c9626 Mon Sep 17 00:00:00 2001 From: c9bot Date: Wed, 21 Oct 2015 11:04:09 +0200 Subject: [PATCH 244/430] c9-auto-bump 3.1.60 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 222054a9..cbc114ae 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.59", + "version": "3.1.60", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 190a9cf27087c24e06c8f8cfec07d287d9e6c54b Mon Sep 17 00:00:00 2001 From: c9bot Date: Wed, 21 Oct 2015 11:42:20 +0200 Subject: [PATCH 245/430] c9-auto-bump 3.1.61 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index cbc114ae..37129694 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.60", + "version": "3.1.61", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From b49d8e9b6be006968ac3b0cf0b3a59600c321d13 Mon Sep 17 00:00:00 2001 From: c9bot Date: Wed, 21 Oct 2015 12:31:21 +0200 Subject: [PATCH 246/430] c9-auto-bump 3.1.62 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 37129694..f4a70a75 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.61", + "version": "3.1.62", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 29b1ba89718a9e4c73016a5231d0daac63d64a39 Mon Sep 17 00:00:00 2001 From: c9bot Date: Wed, 21 Oct 2015 14:02:35 +0200 Subject: [PATCH 247/430] c9-auto-bump 3.1.63 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f4a70a75..7615756a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.62", + "version": "3.1.63", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 78a9270a61b5e7852c9c77155fd1998d07bf98ce Mon Sep 17 00:00:00 2001 From: c9bot Date: Wed, 21 Oct 2015 14:02:57 +0200 Subject: [PATCH 248/430] c9-auto-bump 3.1.64 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7615756a..63ec71f4 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.63", + "version": "3.1.64", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From c5036dac59bb9850c58a5ee695027d5ee0bc025d Mon Sep 17 00:00:00 2001 From: c9bot Date: Wed, 21 Oct 2015 14:04:49 +0200 Subject: [PATCH 249/430] c9-auto-bump 3.1.65 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 63ec71f4..b6525536 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.64", + "version": "3.1.65", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 6120f2121f0feda2ceb7ec4eba5184b3940a46ab Mon Sep 17 00:00:00 2001 From: c9bot Date: Wed, 21 Oct 2015 14:16:23 +0200 Subject: [PATCH 250/430] c9-auto-bump 3.1.66 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b6525536..d22e5455 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.65", + "version": "3.1.66", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 342ff3f74508ae2bb9e6050bf3e1f6cd8928c593 Mon Sep 17 00:00:00 2001 From: c9bot Date: Wed, 21 Oct 2015 15:11:25 +0200 Subject: [PATCH 251/430] c9-auto-bump 3.1.67 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d22e5455..cdf2102b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.66", + "version": "3.1.67", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 8ec27ef7574ed97e7cfdf6f9b946a5aa7bda1933 Mon Sep 17 00:00:00 2001 From: c9bot Date: Wed, 21 Oct 2015 15:14:12 +0200 Subject: [PATCH 252/430] c9-auto-bump 3.1.68 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index cdf2102b..53c0c451 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.67", + "version": "3.1.68", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From cc5bcad13b48c105ed03d349557eae08903c7b43 Mon Sep 17 00:00:00 2001 From: c9bot Date: Wed, 21 Oct 2015 16:57:12 +0200 Subject: [PATCH 253/430] c9-auto-bump 3.1.69 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 53c0c451..effddc3c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.68", + "version": "3.1.69", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 36d512491c3f7a3a1baa32a8f48476f080d8787c Mon Sep 17 00:00:00 2001 From: c9bot Date: Wed, 21 Oct 2015 17:47:32 +0200 Subject: [PATCH 254/430] c9-auto-bump 3.1.70 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index effddc3c..b5b1a9ca 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.69", + "version": "3.1.70", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 1cf70893f23e46b8b9aebe23dc3562c70dffaaf5 Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Wed, 21 Oct 2015 10:49:32 -0700 Subject: [PATCH 255/430] Fix jsbeautify to actually work --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b5b1a9ca..1991faa1 100644 --- a/package.json +++ b/package.json @@ -85,7 +85,7 @@ "c9.ide.configuration": "#a9066299a2", "c9.ide.dialog.wizard": "#7667ec79a8", "c9.ide.fontawesome": "#781602c5d8", - "c9.ide.format": "#33ebd01914", + "c9.ide.format": "#5ec97fb083", "c9.ide.help.support": "#e95f98f87c", "c9.ide.imgeditor": "#66a9733dc1", "c9.ide.immediate": "#29fd6d3f51", From 6c0cce3e3c24879887e5af1e97cc78f3375b167c Mon Sep 17 00:00:00 2001 From: c9bot Date: Wed, 21 Oct 2015 21:35:05 +0200 Subject: [PATCH 256/430] c9-auto-bump 3.1.71 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b5b1a9ca..a4b74ae5 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.70", + "version": "3.1.71", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From c2936d7fc02941062b7fb837c0770f3bfcdca77b Mon Sep 17 00:00:00 2001 From: c9bot Date: Wed, 21 Oct 2015 22:25:49 +0200 Subject: [PATCH 257/430] c9-auto-bump 3.1.72 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a4b74ae5..3168cb53 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.71", + "version": "3.1.72", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From c7f5b63e51978c37cf2ea58d1feab96958d7d18e Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Wed, 21 Oct 2015 20:41:41 +0000 Subject: [PATCH 258/430] Fix collab issue where document is not in expected state when using a different editor --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1991faa1..179323bd 100644 --- a/package.json +++ b/package.json @@ -66,7 +66,7 @@ "c9.ide.language.javascript.tern": "#40cf04bded", "c9.ide.language.javascript.infer": "#8478e3c702", "c9.ide.language.jsonalyzer": "#8401c240b3", - "c9.ide.collab": "#a8e597ae5e", + "c9.ide.collab": "#f06cc0653e", "c9.ide.local": "#a6e689e33b", "c9.ide.find": "#35379124ca", "c9.ide.find.infiles": "#c132ad243c", From a2bfeb4932ca15b43ebd18009c32c23fe5e3cdf4 Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Wed, 21 Oct 2015 21:12:27 +0000 Subject: [PATCH 259/430] Make merge tool work when switching editors --- package.json | 2 +- plugins/c9.ide.editors/tabmanager.js | 14 +++++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 179323bd..ab931fb4 100644 --- a/package.json +++ b/package.json @@ -106,7 +106,7 @@ "c9.ide.run.build": "#0598fff697", "c9.ide.run.debug.xdebug": "#61dcbd0180", "c9.ide.save": "#4a4a60a004", - "c9.ide.scm": "#d92bb9aeb5", + "c9.ide.scm": "#a194f3ca85", "c9.ide.terminal.monitor": "#b76f1c9f24", "c9.ide.test": "#ba0ed6e586", "c9.ide.test.mocha": "#f6cc482886", diff --git a/plugins/c9.ide.editors/tabmanager.js b/plugins/c9.ide.editors/tabmanager.js index f387caaa..21cad3e8 100644 --- a/plugins/c9.ide.editors/tabmanager.js +++ b/plugins/c9.ide.editors/tabmanager.js @@ -178,7 +178,7 @@ define(function(require, module, exports) { if (!editors.findEditor(e.value).fileExtensions.length) openEditor(e.value, true, function(){}); else if (focussedTab) - focussedTab.switchEditor(e.value, function(){}); + switchEditor(focussedTab, e.value, function(){}); }); editors.on("menuShow", function(e) { var group, editor = focussedTab && focussedTab.editor; @@ -1405,6 +1405,13 @@ define(function(require, module, exports) { return true; } + function switchEditor(tab, type, callback) { + tab.switchEditor(type, function(){ + emit("switchEditor", { tab: tab }); + callback.apply(this, arguments); + }); + } + /**** Support for state preservation ****/ function pauseTabResize(){ @@ -1956,6 +1963,11 @@ define(function(require, module, exports) { */ clone: clone, + /** + * + */ + switchEditor: switchEditor, + /** * @ignore */ From 3b01cfbd2f601bfa9b4b79249f765279a0214a9c Mon Sep 17 00:00:00 2001 From: nightwing Date: Wed, 21 Oct 2015 02:24:49 +0400 Subject: [PATCH 260/430] tweak conflictmarker --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ab931fb4..327db299 100644 --- a/package.json +++ b/package.json @@ -106,7 +106,7 @@ "c9.ide.run.build": "#0598fff697", "c9.ide.run.debug.xdebug": "#61dcbd0180", "c9.ide.save": "#4a4a60a004", - "c9.ide.scm": "#a194f3ca85", + "c9.ide.scm": "#dbe07b56e0", "c9.ide.terminal.monitor": "#b76f1c9f24", "c9.ide.test": "#ba0ed6e586", "c9.ide.test.mocha": "#f6cc482886", From 48f6a5864443bd2255c8c5bb023ec8e404ae1edb Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Wed, 21 Oct 2015 14:31:33 -0700 Subject: [PATCH 261/430] set hasValue before setValue --- plugins/c9.ide.editors/document.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/c9.ide.editors/document.js b/plugins/c9.ide.editors/document.js index e8b8f33d..9f682b05 100644 --- a/plugins/c9.ide.editors/document.js +++ b/plugins/c9.ide.editors/document.js @@ -386,8 +386,8 @@ define(function(require, module, exports) { }, set value(v) { value = recentValue = v; - emit("setValue", { value: v }); hasValue = true; + emit("setValue", { value: v }); }, /** * The last serialized value that was either set or retrieved. From 7d426e86988f7f4a5687b2abb1194fa8713665fd Mon Sep 17 00:00:00 2001 From: nightwing Date: Thu, 22 Oct 2015 01:39:34 +0400 Subject: [PATCH 262/430] use editor lineheight for conflict markers --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 327db299..1ddb015f 100644 --- a/package.json +++ b/package.json @@ -106,7 +106,7 @@ "c9.ide.run.build": "#0598fff697", "c9.ide.run.debug.xdebug": "#61dcbd0180", "c9.ide.save": "#4a4a60a004", - "c9.ide.scm": "#dbe07b56e0", + "c9.ide.scm": "#dbad171e75", "c9.ide.terminal.monitor": "#b76f1c9f24", "c9.ide.test": "#ba0ed6e586", "c9.ide.test.mocha": "#f6cc482886", From 36c59fa5c1981c1a79d598b76043bbc27727b817 Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Wed, 21 Oct 2015 21:57:08 +0000 Subject: [PATCH 263/430] Fix settings for getJson --- plugins/c9.core/settings.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/c9.core/settings.js b/plugins/c9.core/settings.js index 0331c92c..941fdd8a 100644 --- a/plugins/c9.core/settings.js +++ b/plugins/c9.core/settings.js @@ -423,7 +423,7 @@ define(function(require, exports, module) { function getJson(query) { var json = get(query, true); - if (query.indexOf("json()") == -1) + if (query.indexOf("json()") == -1 && json["json()"]) json = json["json()"]; if (typeof json === "object") From b361151d66f983c6666dc48d31ee81f0a945012b Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Wed, 21 Oct 2015 14:59:29 -0700 Subject: [PATCH 264/430] Revent changing hasValue to before setValue --- plugins/c9.ide.editors/document.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/c9.ide.editors/document.js b/plugins/c9.ide.editors/document.js index 9f682b05..e8b8f33d 100644 --- a/plugins/c9.ide.editors/document.js +++ b/plugins/c9.ide.editors/document.js @@ -386,8 +386,8 @@ define(function(require, module, exports) { }, set value(v) { value = recentValue = v; - hasValue = true; emit("setValue", { value: v }); + hasValue = true; }, /** * The last serialized value that was either set or retrieved. From dfca5e1c1c1abc08a475f8614148f49b9d771388 Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Wed, 21 Oct 2015 22:09:26 +0000 Subject: [PATCH 265/430] Better getJson fix --- plugins/c9.core/settings.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/c9.core/settings.js b/plugins/c9.core/settings.js index 941fdd8a..b9cb93d0 100644 --- a/plugins/c9.core/settings.js +++ b/plugins/c9.core/settings.js @@ -423,7 +423,7 @@ define(function(require, exports, module) { function getJson(query) { var json = get(query, true); - if (query.indexOf("json()") == -1 && json["json()"]) + if (query.indexOf("@") == -1 && query.indexOf("json()") == -1) json = json["json()"]; if (typeof json === "object") @@ -434,6 +434,7 @@ define(function(require, exports, module) { return JSON.parse(json); } catch (e) {} } + // do not return null or undefined so that getJson(query).foo never throws return false; } From 000b986debdd3bbcc92c3949984a02dceef611d7 Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Wed, 21 Oct 2015 22:10:52 +0000 Subject: [PATCH 266/430] Set proper code coverage title --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 30988e0f..0264ea51 100644 --- a/package.json +++ b/package.json @@ -108,7 +108,7 @@ "c9.ide.save": "#4a4a60a004", "c9.ide.scm": "#dbad171e75", "c9.ide.terminal.monitor": "#b76f1c9f24", - "c9.ide.test": "#ba0ed6e586", + "c9.ide.test": "#f1a82f6546", "c9.ide.test.mocha": "#f6cc482886", "c9.ide.theme.flat": "#2de8414db7", "c9.ide.threewaymerge": "#229382aa0b", From 3e6b9db5a1ddd2682cc18531b3c4582776ade250 Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Wed, 21 Oct 2015 22:27:22 +0000 Subject: [PATCH 267/430] Enable the test panel for salesforce --- configs/client-default.js | 4 +++- package.json | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/configs/client-default.js b/configs/client-default.js index aa32aeee..746f4a6b 100644 --- a/configs/client-default.js +++ b/configs/client-default.js @@ -706,7 +706,9 @@ module.exports = function(options) { }, // Test - "plugins/c9.ide.test/test", + { + packagePath: "plugins/c9.ide.test/test" + }, "plugins/c9.ide.test/testpanel", "plugins/c9.ide.test/testrunner", { diff --git a/package.json b/package.json index 0264ea51..f75177c1 100644 --- a/package.json +++ b/package.json @@ -108,7 +108,7 @@ "c9.ide.save": "#4a4a60a004", "c9.ide.scm": "#dbad171e75", "c9.ide.terminal.monitor": "#b76f1c9f24", - "c9.ide.test": "#f1a82f6546", + "c9.ide.test": "#4707ef209a", "c9.ide.test.mocha": "#f6cc482886", "c9.ide.theme.flat": "#2de8414db7", "c9.ide.threewaymerge": "#229382aa0b", From 14d5c7cade207728fbe89ac7511cf7c884b8a6cd Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Wed, 21 Oct 2015 22:49:10 +0000 Subject: [PATCH 268/430] Fix coverage view for dark theme --- package.json | 2 +- .../c9.ide.layout.classic/themes/flat-light.less | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index f75177c1..3e4f159f 100644 --- a/package.json +++ b/package.json @@ -108,7 +108,7 @@ "c9.ide.save": "#4a4a60a004", "c9.ide.scm": "#dbad171e75", "c9.ide.terminal.monitor": "#b76f1c9f24", - "c9.ide.test": "#4707ef209a", + "c9.ide.test": "#4995eb9dee", "c9.ide.test.mocha": "#f6cc482886", "c9.ide.theme.flat": "#2de8414db7", "c9.ide.threewaymerge": "#229382aa0b", diff --git a/plugins/c9.ide.layout.classic/themes/flat-light.less b/plugins/c9.ide.layout.classic/themes/flat-light.less index fb1592a9..4dc3b879 100644 --- a/plugins/c9.ide.layout.classic/themes/flat-light.less +++ b/plugins/c9.ide.layout.classic/themes/flat-light.less @@ -438,6 +438,19 @@ body .runner-form-header{ height: 22px; } +.coverage-toolbar{ + background-color:#f7f7f7; + border-bottom: 1px solid #ECECEC; + box-sizing: border-box; +} +.coverage-toolbar .label{ + padding:7px; +} +.coverage-toolbar .black_dropdown{ + margin: 0; + min-height: 28px !important; +} + @media print, (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 1.25dppx) { .listBP .checked .checkbox { background-position: 0px -61px !important; From 6c1a5c8b8c83be3a763eda01e83c5be97bda4f95 Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Wed, 21 Oct 2015 22:51:43 +0000 Subject: [PATCH 269/430] Force margin --- package.json | 2 +- plugins/c9.ide.layout.classic/themes/flat-light.less | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 3e4f159f..eacaceb8 100644 --- a/package.json +++ b/package.json @@ -108,7 +108,7 @@ "c9.ide.save": "#4a4a60a004", "c9.ide.scm": "#dbad171e75", "c9.ide.terminal.monitor": "#b76f1c9f24", - "c9.ide.test": "#4995eb9dee", + "c9.ide.test": "#ef8b4de474", "c9.ide.test.mocha": "#f6cc482886", "c9.ide.theme.flat": "#2de8414db7", "c9.ide.threewaymerge": "#229382aa0b", diff --git a/plugins/c9.ide.layout.classic/themes/flat-light.less b/plugins/c9.ide.layout.classic/themes/flat-light.less index 4dc3b879..f0377679 100644 --- a/plugins/c9.ide.layout.classic/themes/flat-light.less +++ b/plugins/c9.ide.layout.classic/themes/flat-light.less @@ -447,7 +447,7 @@ body .runner-form-header{ padding:7px; } .coverage-toolbar .black_dropdown{ - margin: 0; + margin: 0 !important; min-height: 28px !important; } From 7923f2eedc22e30a1b4f7e3c319a730f6980bc02 Mon Sep 17 00:00:00 2001 From: c9bot Date: Thu, 22 Oct 2015 01:10:58 +0200 Subject: [PATCH 270/430] c9-auto-bump 3.1.73 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index eacaceb8..95ab657a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.72", + "version": "3.1.73", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 162ff405f45db9ff754e32499a2beb23c319fe64 Mon Sep 17 00:00:00 2001 From: Alex Brausewetter Date: Wed, 21 Oct 2015 18:09:29 -0700 Subject: [PATCH 271/430] Revert "Open SVG files in image previewer by default" --- plugins/c9.ide.editors/editors.js | 4 ++-- plugins/c9.ide.editors/imgview.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/c9.ide.editors/editors.js b/plugins/c9.ide.editors/editors.js index 510e3273..00bd870d 100644 --- a/plugins/c9.ide.editors/editors.js +++ b/plugins/c9.ide.editors/editors.js @@ -105,7 +105,7 @@ define(function(require, module, exports) { extensions.forEach(function(ext) { // force lower-case, to account for other LowerCase checks below ext = ext.toLowerCase(); - (fileExtensions[ext] || (fileExtensions[ext] = [])).unshift(editor); + (fileExtensions[ext] || (fileExtensions[ext] = [])).push(editor); }); if (editor.type == options.defaultEditor) @@ -276,4 +276,4 @@ define(function(require, module, exports) { editors: plugin }); } -}); +}); \ No newline at end of file diff --git a/plugins/c9.ide.editors/imgview.js b/plugins/c9.ide.editors/imgview.js index c3ffd614..c75f09ac 100644 --- a/plugins/c9.ide.editors/imgview.js +++ b/plugins/c9.ide.editors/imgview.js @@ -12,7 +12,7 @@ define(function(require, exports, module) { /***** Initialization *****/ - var extensions = ["gif", "ico", "svg"]; + var extensions = ["gif", "ico"]; function ImageEditor(){ var plugin = new Editor("Ajax.org", main.consumes, extensions); @@ -135,4 +135,4 @@ define(function(require, exports, module) { ImageEditor, extensions) }); } -}); +}); \ No newline at end of file From 1d7a2d1a2a7993b09f9dbca5183f0f0bfcb0f1a9 Mon Sep 17 00:00:00 2001 From: Alex Brausewetter Date: Sat, 25 Jul 2015 14:51:43 -0700 Subject: [PATCH 272/430] Do not revert bugfix for order of editor --- plugins/c9.ide.editors/editors.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/c9.ide.editors/editors.js b/plugins/c9.ide.editors/editors.js index 00bd870d..510e3273 100644 --- a/plugins/c9.ide.editors/editors.js +++ b/plugins/c9.ide.editors/editors.js @@ -105,7 +105,7 @@ define(function(require, module, exports) { extensions.forEach(function(ext) { // force lower-case, to account for other LowerCase checks below ext = ext.toLowerCase(); - (fileExtensions[ext] || (fileExtensions[ext] = [])).push(editor); + (fileExtensions[ext] || (fileExtensions[ext] = [])).unshift(editor); }); if (editor.type == options.defaultEditor) @@ -276,4 +276,4 @@ define(function(require, module, exports) { editors: plugin }); } -}); \ No newline at end of file +}); From 2487fa66c4d1b5fa1b9c72316fa55a7765b7c3d1 Mon Sep 17 00:00:00 2001 From: c9bot Date: Thu, 22 Oct 2015 03:16:37 +0200 Subject: [PATCH 273/430] c9-auto-bump 3.1.74 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 95ab657a..f6e45909 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.73", + "version": "3.1.74", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From f783e83fa6595503c9198559d07613d20636d6b6 Mon Sep 17 00:00:00 2001 From: c9bot Date: Thu, 22 Oct 2015 03:23:05 +0200 Subject: [PATCH 274/430] c9-auto-bump 3.1.75 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f6e45909..ec7777a2 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.74", + "version": "3.1.75", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From e0847fa45d9852f04a6e7a72a13e5048f2da793b Mon Sep 17 00:00:00 2001 From: c9bot Date: Thu, 22 Oct 2015 09:19:54 +0200 Subject: [PATCH 275/430] c9-auto-bump 3.1.76 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ec7777a2..eed1cfb4 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.75", + "version": "3.1.76", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 27752b347e65809663b82bca2e92eb1d9c807b06 Mon Sep 17 00:00:00 2001 From: c9bot Date: Thu, 22 Oct 2015 09:20:29 +0200 Subject: [PATCH 276/430] c9-auto-bump 3.1.77 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index eed1cfb4..6cdc03c8 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.76", + "version": "3.1.77", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From e7485980b4a5e4b43792741b6845551355a2c7ef Mon Sep 17 00:00:00 2001 From: c9bot Date: Thu, 22 Oct 2015 09:21:15 +0200 Subject: [PATCH 277/430] c9-auto-bump 3.1.78 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 6cdc03c8..a7bc19a2 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.77", + "version": "3.1.78", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 143ec27eeacf633b5822837ff75ced4d57a96220 Mon Sep 17 00:00:00 2001 From: c9bot Date: Thu, 22 Oct 2015 10:52:24 +0200 Subject: [PATCH 278/430] c9-auto-bump 3.1.79 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a7bc19a2..32906573 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.78", + "version": "3.1.79", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 0dc54a84037e86f0b7243fe75de88b5b7c8e5854 Mon Sep 17 00:00:00 2001 From: c9bot Date: Thu, 22 Oct 2015 11:10:19 +0200 Subject: [PATCH 279/430] c9-auto-bump 3.1.80 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 32906573..5a425ec4 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.79", + "version": "3.1.80", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 5ca23d2793699b91ab7f3500fd8812ad5d408b9d Mon Sep 17 00:00:00 2001 From: c9bot Date: Thu, 22 Oct 2015 11:12:50 +0200 Subject: [PATCH 280/430] c9-auto-bump 3.1.81 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 5a425ec4..ba2274e3 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.80", + "version": "3.1.81", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From c2abe22932bb934b6e5106d7a1f0af2f785fe70e Mon Sep 17 00:00:00 2001 From: c9bot Date: Thu, 22 Oct 2015 11:15:09 +0200 Subject: [PATCH 281/430] c9-auto-bump 3.1.82 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ba2274e3..519fef8f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.81", + "version": "3.1.82", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From f927fd84680fb023a2bf0824746464688a0c894a Mon Sep 17 00:00:00 2001 From: c9bot Date: Thu, 22 Oct 2015 11:54:54 +0200 Subject: [PATCH 282/430] c9-auto-bump 3.1.83 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 519fef8f..f49eb9ce 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.82", + "version": "3.1.83", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 314947fbf7cbc0d472e6f80baa71769bd5a48ec0 Mon Sep 17 00:00:00 2001 From: c9bot Date: Thu, 22 Oct 2015 12:07:14 +0200 Subject: [PATCH 283/430] c9-auto-bump 3.1.84 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f49eb9ce..a417d2e3 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.83", + "version": "3.1.84", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 40c010cffacf157207748c4a877ac40298a4754e Mon Sep 17 00:00:00 2001 From: Tim Robinson Date: Thu, 22 Oct 2015 10:30:54 +0000 Subject: [PATCH 284/430] Revert "fix symlink loop detection" This reverts commit 7126015b1b5b6a47205ab80d3fa89136c206c3b5. --- node_modules/vfs-local/localfs.js | 35 ++++++++++++++----------------- plugins/c9.fs/fs.cache.xml.js | 4 ++-- 2 files changed, 18 insertions(+), 21 deletions(-) diff --git a/node_modules/vfs-local/localfs.js b/node_modules/vfs-local/localfs.js index 1984e00d..f9376f77 100644 --- a/node_modules/vfs-local/localfs.js +++ b/node_modules/vfs-local/localfs.js @@ -350,7 +350,7 @@ module.exports = function setup(fsOptions) { // This helper function doesn't follow node conventions in the callback, // there is no err, only entry. - function createStatEntry(file, fullpath, callback, _loop) { + function createStatEntry(file, fullpath, callback) { fs.lstat(fullpath, function (err, stat) { var entry = { name: file @@ -378,29 +378,26 @@ module.exports = function setup(fsOptions) { return callback(entry); } fs.readlink(fullpath, function (err, link) { + if (entry.name == link) { + entry.linkStatErr = "ELOOP: recursive symlink"; + return callback(entry); + } + if (err) { entry.linkErr = err.stack; return callback(entry); } - var fullLinkPath = pathResolve(dirname(fullpath), link); - if (!_loop) { - _loop = {fullLinkPath: fullpath, max: 100}; - } - if (fullLinkPath.toLowerCase() == _loop.fullLinkPath.toLowerCase() || _loop.max --< 0) { - entry.linkErr = "ELOOP: recursive symlink"; - return callback(entry); - } entry.link = link; - resolvePath(fullLinkPath, {alreadyRooted: true}, function (err, newpath) { - if (err) { - entry.linkErr = err; - return callback(entry); - } - createStatEntry(basename(newpath), newpath, function (linkStat) { - entry.linkStat = linkStat; - linkStat.fullPath = newpath.substr(base.length) || "/"; - return callback(entry); - }, _loop); + resolvePath(pathResolve(dirname(fullpath), link), {alreadyRooted: true}, function (err, newpath) { + if (err) { + entry.linkStatErr = err; + return callback(entry); + } + createStatEntry(basename(newpath), newpath, function (linkStat) { + entry.linkStat = linkStat; + linkStat.fullPath = newpath.substr(base.length) || "/"; + return callback(entry); + }); }); }); } diff --git a/plugins/c9.fs/fs.cache.xml.js b/plugins/c9.fs/fs.cache.xml.js index c9ad1844..dda745dd 100644 --- a/plugins/c9.fs/fs.cache.xml.js +++ b/plugins/c9.fs/fs.cache.xml.js @@ -561,8 +561,8 @@ define(function(require, exports, module) { node.size = stat.size; if (stat.mtime != undefined) node.mtime = stat.mtime; - if (original_stat || stat.linkErr) - node.link = stat.fullPath || stat.linkErr; + if (original_stat) + node.link = stat.fullPath; node.isFolder = isFolder; } From 860440128eb002681b689d582c599d00370e9df1 Mon Sep 17 00:00:00 2001 From: c9bot Date: Thu, 22 Oct 2015 12:47:57 +0200 Subject: [PATCH 285/430] c9-auto-bump 3.1.85 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a417d2e3..384ae56b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.84", + "version": "3.1.85", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 1f4136513294e61da0fdf2580cb2f4aa28ed4c52 Mon Sep 17 00:00:00 2001 From: c9bot Date: Thu, 22 Oct 2015 13:54:00 +0200 Subject: [PATCH 286/430] c9-auto-bump 3.1.86 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 384ae56b..4ee0bff1 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.85", + "version": "3.1.86", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 0b9572e226d4c3f5d127fc4a4f5bca2eec3ff7d3 Mon Sep 17 00:00:00 2001 From: c9bot Date: Thu, 22 Oct 2015 14:08:57 +0200 Subject: [PATCH 287/430] c9-auto-bump 3.1.87 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4ee0bff1..39cd4007 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.86", + "version": "3.1.87", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 003f0a6ed05d6a478a825066a93ae28549796f6e Mon Sep 17 00:00:00 2001 From: c9bot Date: Thu, 22 Oct 2015 14:14:49 +0200 Subject: [PATCH 288/430] c9-auto-bump 3.1.88 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 39cd4007..25cb9804 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.87", + "version": "3.1.88", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 024c0fe4ecc957d61fa644960700ea44cff73ede Mon Sep 17 00:00:00 2001 From: c9bot Date: Thu, 22 Oct 2015 14:18:25 +0200 Subject: [PATCH 289/430] c9-auto-bump 3.1.89 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 25cb9804..1b8c4756 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.88", + "version": "3.1.89", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From c055ee04a0bcb35da98388787a5a43530b3f6859 Mon Sep 17 00:00:00 2001 From: c9bot Date: Thu, 22 Oct 2015 14:27:01 +0200 Subject: [PATCH 290/430] c9-auto-bump 3.1.90 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1b8c4756..a824eed8 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.89", + "version": "3.1.90", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 782556a935d2b658d8982ee9a78331cc36feeb44 Mon Sep 17 00:00:00 2001 From: c9bot Date: Thu, 22 Oct 2015 15:30:05 +0200 Subject: [PATCH 291/430] c9-auto-bump 3.1.91 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a824eed8..0bc98524 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.90", + "version": "3.1.91", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From e2ffe0b157a6a4fcce067cc876221d7edb914dd9 Mon Sep 17 00:00:00 2001 From: c9bot Date: Thu, 22 Oct 2015 17:01:48 +0200 Subject: [PATCH 292/430] c9-auto-bump 3.1.92 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0bc98524..9afef972 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.91", + "version": "3.1.92", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 2f305872adde7f48b2d6d4d6dd5b0d29d6b60cd7 Mon Sep 17 00:00:00 2001 From: c9bot Date: Thu, 22 Oct 2015 17:22:24 +0200 Subject: [PATCH 293/430] c9-auto-bump 3.1.93 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9afef972..fa950fdb 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.92", + "version": "3.1.93", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 893c8df0773b8a694539495bfadd747f800a6e22 Mon Sep 17 00:00:00 2001 From: c9bot Date: Thu, 22 Oct 2015 18:31:19 +0200 Subject: [PATCH 294/430] c9-auto-bump 3.1.94 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index fa950fdb..d8b6b085 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.93", + "version": "3.1.94", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 785ce62dec441653c8f0114dc6ed8da430b6aa1a Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Thu, 22 Oct 2015 20:22:09 +0000 Subject: [PATCH 295/430] Make sure coverage doesn't error --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d8b6b085..d92ac3be 100644 --- a/package.json +++ b/package.json @@ -108,7 +108,7 @@ "c9.ide.save": "#4a4a60a004", "c9.ide.scm": "#dbad171e75", "c9.ide.terminal.monitor": "#b76f1c9f24", - "c9.ide.test": "#ef8b4de474", + "c9.ide.test": "#1667e26f82", "c9.ide.test.mocha": "#f6cc482886", "c9.ide.theme.flat": "#2de8414db7", "c9.ide.threewaymerge": "#229382aa0b", From e88bf3bf9c6524bff690ea78184a1797bef4fa5b Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Thu, 22 Oct 2015 20:28:20 +0000 Subject: [PATCH 296/430] Force plugin to always specifyc query --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d92ac3be..5d8c0fe0 100644 --- a/package.json +++ b/package.json @@ -108,7 +108,7 @@ "c9.ide.save": "#4a4a60a004", "c9.ide.scm": "#dbad171e75", "c9.ide.terminal.monitor": "#b76f1c9f24", - "c9.ide.test": "#1667e26f82", + "c9.ide.test": "#16aa883293", "c9.ide.test.mocha": "#f6cc482886", "c9.ide.theme.flat": "#2de8414db7", "c9.ide.threewaymerge": "#229382aa0b", From 7e0df0fd2c9962fd57fc0c5660b4066b559af4c3 Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Thu, 22 Oct 2015 20:44:09 +0000 Subject: [PATCH 297/430] Add defaultParallel to test runner --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 5d8c0fe0..a8848541 100644 --- a/package.json +++ b/package.json @@ -108,7 +108,7 @@ "c9.ide.save": "#4a4a60a004", "c9.ide.scm": "#dbad171e75", "c9.ide.terminal.monitor": "#b76f1c9f24", - "c9.ide.test": "#16aa883293", + "c9.ide.test": "#6adec9af0d", "c9.ide.test.mocha": "#f6cc482886", "c9.ide.theme.flat": "#2de8414db7", "c9.ide.threewaymerge": "#229382aa0b", From 878e4aafefa0ee9432bcf3fcfcbc701519dca243 Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Thu, 22 Oct 2015 20:44:57 +0000 Subject: [PATCH 298/430] Make defaultParallel a constructor setting --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a8848541..1602ab07 100644 --- a/package.json +++ b/package.json @@ -108,7 +108,7 @@ "c9.ide.save": "#4a4a60a004", "c9.ide.scm": "#dbad171e75", "c9.ide.terminal.monitor": "#b76f1c9f24", - "c9.ide.test": "#6adec9af0d", + "c9.ide.test": "#25888a6455", "c9.ide.test.mocha": "#f6cc482886", "c9.ide.theme.flat": "#2de8414db7", "c9.ide.threewaymerge": "#229382aa0b", From 00aff733fd42db50eb3960bbd354fe515caa1832 Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Thu, 22 Oct 2015 21:01:47 +0000 Subject: [PATCH 299/430] Set padding correctly --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1602ab07..1443d797 100644 --- a/package.json +++ b/package.json @@ -108,7 +108,7 @@ "c9.ide.save": "#4a4a60a004", "c9.ide.scm": "#dbad171e75", "c9.ide.terminal.monitor": "#b76f1c9f24", - "c9.ide.test": "#25888a6455", + "c9.ide.test": "#4f2ad8bcbd", "c9.ide.test.mocha": "#f6cc482886", "c9.ide.theme.flat": "#2de8414db7", "c9.ide.threewaymerge": "#229382aa0b", From ca32c77b3a52762e23809cfeac0bc27f28302600 Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Thu, 22 Oct 2015 21:07:32 +0000 Subject: [PATCH 300/430] run test when double clicking --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1443d797..72b87c24 100644 --- a/package.json +++ b/package.json @@ -108,7 +108,7 @@ "c9.ide.save": "#4a4a60a004", "c9.ide.scm": "#dbad171e75", "c9.ide.terminal.monitor": "#b76f1c9f24", - "c9.ide.test": "#4f2ad8bcbd", + "c9.ide.test": "#7860366e28", "c9.ide.test.mocha": "#f6cc482886", "c9.ide.theme.flat": "#2de8414db7", "c9.ide.threewaymerge": "#229382aa0b", From a83ae43a5e319aff3304b98a235e1c19efaae9e1 Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Thu, 22 Oct 2015 21:26:13 +0000 Subject: [PATCH 301/430] increase scrollbarck default --- plugins/c9.ide.terminal/terminal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/c9.ide.terminal/terminal.js b/plugins/c9.ide.terminal/terminal.js index d13279e9..6c1e9bba 100644 --- a/plugins/c9.ide.terminal/terminal.js +++ b/plugins/c9.ide.terminal/terminal.js @@ -261,7 +261,7 @@ define(function(require, exports, module) { ["fontfamily", "Ubuntu Mono, Menlo, Consolas, monospace"], //Monaco, ["fontsize", "12"], ["blinking", "false"], - ["scrollback", "1000"] + ["scrollback", 10000] ]); setSettings(); From afc75e013f8553ef4904c32dd9dfdf5749793b1c Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Thu, 22 Oct 2015 23:35:09 +0000 Subject: [PATCH 302/430] supportive fixes --- package.json | 2 +- plugins/c9.ide.terminal/terminal.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 72b87c24..64098406 100644 --- a/package.json +++ b/package.json @@ -108,7 +108,7 @@ "c9.ide.save": "#4a4a60a004", "c9.ide.scm": "#dbad171e75", "c9.ide.terminal.monitor": "#b76f1c9f24", - "c9.ide.test": "#7860366e28", + "c9.ide.test": "#6e573f9334", "c9.ide.test.mocha": "#f6cc482886", "c9.ide.theme.flat": "#2de8414db7", "c9.ide.threewaymerge": "#229382aa0b", diff --git a/plugins/c9.ide.terminal/terminal.js b/plugins/c9.ide.terminal/terminal.js index 6c1e9bba..832af404 100644 --- a/plugins/c9.ide.terminal/terminal.js +++ b/plugins/c9.ide.terminal/terminal.js @@ -258,7 +258,7 @@ define(function(require, exports, module) { ["foregroundColor", colors[1]], ["selectionColor", colors[2]], ["antialiasedfonts", colors[3]], - ["fontfamily", "Ubuntu Mono, Menlo, Consolas, monospace"], //Monaco, + ["fontfamily", "Ubuntu Mono, Menlo, Consolas, monospace"], // Monaco, ["fontsize", "12"], ["blinking", "false"], ["scrollback", 10000] From 2b9df59b0e3c9b01ed2f8d7b410e6104b7dde749 Mon Sep 17 00:00:00 2001 From: c9bot Date: Fri, 23 Oct 2015 02:52:23 +0200 Subject: [PATCH 303/430] c9-auto-bump 3.1.95 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 64098406..399d9ff3 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.94", + "version": "3.1.95", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 1d640baf895fd675c28ed8bdc8893b6b3c454354 Mon Sep 17 00:00:00 2001 From: c9bot Date: Fri, 23 Oct 2015 02:58:09 +0200 Subject: [PATCH 304/430] c9-auto-bump 3.1.96 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 399d9ff3..e507a995 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.95", + "version": "3.1.96", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From c4dc1197baed0aa80b811b33835669610d7a540b Mon Sep 17 00:00:00 2001 From: c9bot Date: Fri, 23 Oct 2015 06:56:19 +0200 Subject: [PATCH 305/430] c9-auto-bump 3.1.97 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e507a995..20ca0967 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.96", + "version": "3.1.97", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From c30786527557e66b074bf4fc61659e71d43e133f Mon Sep 17 00:00:00 2001 From: c9bot Date: Fri, 23 Oct 2015 10:29:48 +0200 Subject: [PATCH 306/430] c9-auto-bump 3.1.98 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 20ca0967..4125faa9 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.97", + "version": "3.1.98", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 08f9cae23ad38b745c0594157e319e7685ed7a1e Mon Sep 17 00:00:00 2001 From: Dana Date: Fri, 23 Oct 2015 10:53:01 +0000 Subject: [PATCH 307/430] fix typo in internal domain check for email and add tests --- node_modules/c9/has-internal-domain.js | 2 +- node_modules/c9/has-internal-domain_test.js | 34 +++++++++++++++++++++ 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 node_modules/c9/has-internal-domain_test.js diff --git a/node_modules/c9/has-internal-domain.js b/node_modules/c9/has-internal-domain.js index 55f66c95..cf74b050 100644 --- a/node_modules/c9/has-internal-domain.js +++ b/node_modules/c9/has-internal-domain.js @@ -9,7 +9,7 @@ define(function(require, exports, module) { var _ = require("lodash"); - var internalDomain = ['c9.io', 'clou9beta.com']; + var internalDomain = ['c9.io', 'cloud9beta.com']; function hasInternalDomain(email) { if (!email) return false; diff --git a/node_modules/c9/has-internal-domain_test.js b/node_modules/c9/has-internal-domain_test.js new file mode 100644 index 00000000..d045efee --- /dev/null +++ b/node_modules/c9/has-internal-domain_test.js @@ -0,0 +1,34 @@ +"use strict"; +"use mocha"; + +require("c9/inline-mocha")(module); +var assert = require("assert"); +var faker = require("faker"); +var hasInternalDomain= require("c9/has-internal-domain"); + +describe("has-internal-domain", function() { + + it("returns false when undefined email", function() { + var email; + + assert.equal(false, hasInternalDomain(email), "should return false when email undefined"); + }); + + it("returns true when email has c9.io domain", function() { + var email = "test@c9.io"; + + assert.equal(true, hasInternalDomain(email), "should return true when email has c9.io domain"); + }); + + it("returns true when has cloud9beta.com domain", function() { + var email = "test@cloud9beta.com"; + + assert.equal(true, hasInternalDomain(email), "should return true when email has cloud9beta.com domain"); + }); + + it("returns false when not internal email", function() { + var email = faker.internet.email(); + + assert.equal(false, hasInternalDomain(email), "should return false when email is not internal"); + }); +}); \ No newline at end of file From 3efba7b57b5619eaf33671319166a31e0ec37e3c Mon Sep 17 00:00:00 2001 From: c9bot Date: Fri, 23 Oct 2015 13:38:10 +0200 Subject: [PATCH 308/430] c9-auto-bump 3.1.99 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4125faa9..3e27f1da 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.98", + "version": "3.1.99", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From c6293b4c0afaae3641c61a3fe7877cbecce721b8 Mon Sep 17 00:00:00 2001 From: c9bot Date: Fri, 23 Oct 2015 13:40:31 +0200 Subject: [PATCH 309/430] c9-auto-bump 3.1.100 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 3e27f1da..9f16640e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.99", + "version": "3.1.100", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 0a486eb06f2ab3ddd80455f2c883659ce5ecd6ab Mon Sep 17 00:00:00 2001 From: c9bot Date: Fri, 23 Oct 2015 13:43:46 +0200 Subject: [PATCH 310/430] c9-auto-bump 3.1.101 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9f16640e..d63b6922 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.100", + "version": "3.1.101", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From f0c944db312da2b79c48134ca60ac24a379186de Mon Sep 17 00:00:00 2001 From: Dana Date: Fri, 23 Oct 2015 11:46:43 +0000 Subject: [PATCH 311/430] some refactoring and add tests --- node_modules/c9/skip-analytics.js | 20 ++++++++++ node_modules/c9/skip-analytics_test.js | 53 ++++++++++++++++++++++++++ 2 files changed, 73 insertions(+) create mode 100644 node_modules/c9/skip-analytics.js create mode 100644 node_modules/c9/skip-analytics_test.js diff --git a/node_modules/c9/skip-analytics.js b/node_modules/c9/skip-analytics.js new file mode 100644 index 00000000..7362fd63 --- /dev/null +++ b/node_modules/c9/skip-analytics.js @@ -0,0 +1,20 @@ +if (define === undefined) { + var define = function(fn) { + fn(require, exports, module); + }; +} + +define(function(require, exports, module) { + "use strict"; + + var hasInternalDomain = require("c9/has-internal-domain"); + + function skipAnalytics(user) { + if (!user) return true; + if (user.id === -1) return true; + if (hasInternalDomain(user.email)) return true; + return false; + } + + module.exports = skipAnalytics; +}); \ No newline at end of file diff --git a/node_modules/c9/skip-analytics_test.js b/node_modules/c9/skip-analytics_test.js new file mode 100644 index 00000000..300251b0 --- /dev/null +++ b/node_modules/c9/skip-analytics_test.js @@ -0,0 +1,53 @@ +"use strict"; +"use mocha"; + +require("c9/inline-mocha")(module); +var assert = require("assert"); +var faker = require("faker"); +var skipAnalytics = require("c9/skip-analytics"); + +describe("skip-analytics", function() { + + it("returns true when user undefined", function() { + var user; + + assert.equal(true, skipAnalytics(user), "skipAnalytics should return true when user undefined"); + }); + + it("returns true when user id is -1", function() { + var user = { + id: -1 + }; + + assert.equal(true, skipAnalytics(user), "skipAnalytics should return true when user id is -1"); + }); + + it("returns false when user has no email", function() { + var user = { + id: faker.random.uuid() + }; + + assert.equal(false, skipAnalytics(user), "skipAnalytics should return false when user has no email"); + }); + + it("returns true when user has internal email", function() { + var user = { + id: faker.random.uuid(), + email: "test@c9.io" + }; + + assert.equal(true, skipAnalytics(user), "skipAnalytics should return true when user has internal email"); + + user.email = "test@cloud9beta.com"; + assert.equal(true, skipAnalytics(user), "skipAnalytics should return true when user has internal beta email"); + }); + + it("returns false when user is authorized and does not have intermal email", function() { + var user = { + id: faker.random.uuid(), + email: faker.internet.email() + }; + + assert.equal(false, skipAnalytics(user), "skipAnalytics should return false when user is authorized and does not have internal email"); + }); +}); \ No newline at end of file From fabbbaca32f55e7348b0e5aa7f4472f67a830779 Mon Sep 17 00:00:00 2001 From: c9bot Date: Fri, 23 Oct 2015 13:48:25 +0200 Subject: [PATCH 312/430] c9-auto-bump 3.1.102 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d63b6922..38f8ef13 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.101", + "version": "3.1.102", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From c914c035ea58b94b8a2fda0d466b7d71c845dbaa Mon Sep 17 00:00:00 2001 From: c9bot Date: Fri, 23 Oct 2015 13:49:50 +0200 Subject: [PATCH 313/430] c9-auto-bump 3.1.103 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 38f8ef13..3718c87c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.102", + "version": "3.1.103", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From b36bb9533bd63ac333e2e852a1300e5672f31422 Mon Sep 17 00:00:00 2001 From: c9bot Date: Fri, 23 Oct 2015 14:03:35 +0200 Subject: [PATCH 314/430] c9-auto-bump 3.1.104 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 3718c87c..f5245527 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.103", + "version": "3.1.104", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From c7c578e62f88802fa5a85c18940b129f6965924f Mon Sep 17 00:00:00 2001 From: c9bot Date: Fri, 23 Oct 2015 14:57:28 +0200 Subject: [PATCH 315/430] c9-auto-bump 3.1.105 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f5245527..708819e1 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.104", + "version": "3.1.105", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 7e1613d4ab082dbdb19215f9d662c28ac21413ce Mon Sep 17 00:00:00 2001 From: Fabian Jakobs Date: Tue, 20 Oct 2015 10:47:14 +0000 Subject: [PATCH 316/430] add user-content service --- node_modules/c9/object.js | 9 +++++++++ node_modules/c9/string.js | 9 +++++++++ plugins/c9.preview/preview.handler.js | 13 ++++++++++--- server.js | 12 +++++------- 4 files changed, 33 insertions(+), 10 deletions(-) create mode 100644 node_modules/c9/object.js diff --git a/node_modules/c9/object.js b/node_modules/c9/object.js new file mode 100644 index 00000000..875dc338 --- /dev/null +++ b/node_modules/c9/object.js @@ -0,0 +1,9 @@ +/* + * Swap keys and values of an object + */ +exports.invert = function(obj) { + return Object.keys(obj).reduce(function(res, key) { + res[obj[key]] = key; + return res; + }, {}); +}; \ No newline at end of file diff --git a/node_modules/c9/string.js b/node_modules/c9/string.js index 5e3714ce..2a28f65c 100644 --- a/node_modules/c9/string.js +++ b/node_modules/c9/string.js @@ -43,5 +43,14 @@ exports.repeat = function(str, times) { exports.count = function(str, substr){ return str.split(substr).length - 1; }; + +exports.endsWith = function(subjectString, searchString, position) { + if (typeof position !== 'number' || !isFinite(position) || Math.floor(position) !== position || position > subjectString.length) { + position = subjectString.length; + } + position -= searchString.length; + var lastIndex = subjectString.indexOf(searchString, position); + return lastIndex !== -1 && lastIndex === position; +}; }); \ No newline at end of file diff --git a/plugins/c9.preview/preview.handler.js b/plugins/c9.preview/preview.handler.js index d59b24bd..3bf1f351 100644 --- a/plugins/c9.preview/preview.handler.js +++ b/plugins/c9.preview/preview.handler.js @@ -39,7 +39,13 @@ define(function(require, exports, module) { session.ws = {}; req.projectSession = session.ws[ws]; - if (!req.projectSession || !req.projectSession.expires || req.projectSession.expires <= Date.now()) { + + if ( + !req.projectSession || + !req.projectSession.expires || + req.projectSession.expires <= Date.now() || + req.projectSession.uid != req.user.id + ) { req.projectSession = session.ws[ws] = { expires: Date.now() + 10000 }; @@ -77,6 +83,7 @@ define(function(require, exports, module) { } req.projectSession.role = role; req.projectSession.pid = project.id; + req.projectSession.uid = req.user.id; var type = project.scm; req.projectSession.type = type; @@ -137,8 +144,8 @@ define(function(require, exports, module) { var path = req.params.path; var url = req.proxyUrl + path; - if (req.session.token) - url += "?access_token=" + encodeURIComponent(req.session.token.id || req.session.token); + if (req.user.code) + url += "?access_token=" + encodeURIComponent(req.user.code); var parsedUrl = parseUrl(url); var httpModule = parsedUrl.protocol == "https:" ? https : http; diff --git a/server.js b/server.js index d61f0b82..61d0c5ba 100755 --- a/server.js +++ b/server.js @@ -23,15 +23,13 @@ var DEFAULT_CONFIG = "s"; var DEFAULT_SETTINGS = getDefaultSettings(); var shortcuts = { - "dev" : ["ide", "preview", "vfs", "api", "sapi", "proxy", "redis", "profile", "oldclient", "homepage", "apps-proxy", "-s", "devel"], - "onlinedev" : ["ide", "preview", "vfs", "api", "proxy", "oldclient", "homepage", "apps-proxy", "profile", "worker", "-s", "onlinedev"], - "bill" : ["ide", "preview", "vfs", "api", "proxy", "oldclient", "homepage", "apps-proxy", "profile", "-s", "billing"], - "beta" : ["ide", "preview", "vfs", "proxy", "-s", "beta"], - "ci" : ["ide", "preview", "vfs", "proxy", "-s", "ci"], - "s" : ["standalone", "-s", "standalone"] + "dev": ["ide", "preview", "user-content", "vfs", "api", "sapi", "proxy", "redis", "profile", "oldclient", "homepage", "apps-proxy", "-s", "devel"], + "onlinedev": ["ide", "preview", "user-content", "vfs", "api", "proxy", "oldclient", "homepage", "apps-proxy", "profile", "worker", "-s", "onlinedev"], + "beta": ["ide", "preview", "user-content", "vfs", "proxy", "-s", "beta"], + "s": ["standalone", "-s", "standalone"] }; shortcuts.odev = shortcuts.onlinedev; // For backwards compatibility, if you see this in 2016 remove this line -var delayLoadConfigs = ["preview", "api", "oldclient", "apps-proxy", "worker"]; +var delayLoadConfigs = ["preview", "user-content", "api", "oldclient", "apps-proxy", "worker"]; module.exports = main; From 7d8062ddbf46a2c89b924c08bd82b971e6b44d16 Mon Sep 17 00:00:00 2001 From: Fabian Jakobs Date: Wed, 21 Oct 2015 12:01:22 +0000 Subject: [PATCH 317/430] pull out redirect into a separate plugin --- plugins/c9.preview/preview.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugins/c9.preview/preview.js b/plugins/c9.preview/preview.js index 33aa8b31..95f6e72c 100644 --- a/plugins/c9.preview/preview.js +++ b/plugins/c9.preview/preview.js @@ -5,7 +5,9 @@ define(function(require, exports, module) { "session", "db", "c9.login", - "preview.handler" + "preview.handler", + "user-content.redirect", + "connect.remote-address" ]; main.provides = []; return main; @@ -18,6 +20,7 @@ define(function(require, exports, module) { var db = imports.db; var ensureLoggedIn = imports["c9.login"].ensureLoggedIn(); var handler = imports["preview.handler"]; + var userContent = imports["user-content.redirect"]; var frontdoor = require("frontdoor"); var error = require("http-error"); @@ -34,6 +37,8 @@ define(function(require, exports, module) { next(); }); + api.use(userContent.redirectPreview()); + session.use(api); api.get("/:username/:projectname/:path*", { From b340c081afd0de9b5082fae10e3a2f9eac48625f Mon Sep 17 00:00:00 2001 From: Fabian Jakobs Date: Fri, 23 Oct 2015 09:14:35 +0000 Subject: [PATCH 318/430] add unit tests for domain mappings --- node_modules/c9/urls.js | 37 ++++++++++++++++++++++++++++-------- node_modules/c9/urls_test.js | 26 ++++++++++++++++++++++++- 2 files changed, 54 insertions(+), 9 deletions(-) diff --git a/node_modules/c9/urls.js b/node_modules/c9/urls.js index b446ff31..c48a3cff 100644 --- a/node_modules/c9/urls.js +++ b/node_modules/c9/urls.js @@ -9,16 +9,35 @@ var assert = require("assert"); function getHost(req) { - if (req.headers) - return req.headers.host; + var host = + req.headers && req.headers.host || + req.host || + req.url || + req; + + return host.replace(/^https?:\/\/([^/]*).*/, "$1"); +} - if (req.host) - return req.host; +function splitDomain(req, domains) { + var host = getHost(req); + + var allDomains = domains.join("|"); + var domainRe = new RegExp("^(.*?)\\.?(" + allDomains.replace(".", "\\.") + ")(?::(\\d+))?$"); - if (req.url) - return req.url.replace(/^https?:\/\/([^/]*).*/, "$1"); - - return req; + var m = host.match(domainRe); + if (m) { + return { + subDomains: m[1], + domainName: m[2], + port: m[3] || "" + }; + } else { + return { + subDomains: "", + domainName: host.split(":")[0], + port: host.split(":")[1] || "" + }; + } } /** @@ -115,4 +134,6 @@ function replaceDomain(url, domain) { module.exports = { replaceDomains: replaceDomains, getBaseUrl: getBaseUrl, + splitDomain: splitDomain, + getHost: getHost }; \ No newline at end of file diff --git a/node_modules/c9/urls_test.js b/node_modules/c9/urls_test.js index 9e5bc0ec..18cd3fe6 100644 --- a/node_modules/c9/urls_test.js +++ b/node_modules/c9/urls_test.js @@ -9,7 +9,7 @@ if (typeof define === "undefined") { require("../../test/setup_paths"); } -var assert = require("assert"); +var assert = require("assert-diff"); var urls = require("./urls"); var url = require("url"); var sinon = require("sinon"); @@ -126,4 +126,28 @@ describe("urls", function() { var baseUrl = urls.getBaseUrl(input, "https://preview.$DOMAIN"); assert.equal(baseUrl, "https://preview.newclient-lennartcl.c9.io"); }); + + it("should split domains", function() { + var domains = ["c9.io", "c9users.io", "cs50.io"]; + assert.deepEqual(urls.splitDomain("fjakobs-ace.c9.io", domains), { + domainName: "c9.io", + subDomains: "fjakobs-ace", + port: "" + }); + assert.deepEqual(urls.splitDomain("preview.c9users.io", domains), { + domainName: "c9users.io", + subDomains: "preview", + port: "" + }); + assert.deepEqual(urls.splitDomain("fjakobs.ace.cs50.io", domains), { + domainName: "cs50.io", + subDomains: "fjakobs.ace", + port: "" + }); + assert.deepEqual(urls.splitDomain("fjakobs.ace.cs50.io:8081", domains), { + domainName: "cs50.io", + subDomains: "fjakobs.ace", + port: "8081" + }); + }); }); \ No newline at end of file From 17467cfb225b41ab1742cf4bae4398c3c9c5acbc Mon Sep 17 00:00:00 2001 From: Tim Robinson Date: Fri, 23 Oct 2015 13:20:05 +0000 Subject: [PATCH 319/430] Report request timeouts to datadog so we can see spikes --- plugins/c9.error/raygun.connect.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/plugins/c9.error/raygun.connect.js b/plugins/c9.error/raygun.connect.js index ad0cbc64..a52bac9c 100644 --- a/plugins/c9.error/raygun.connect.js +++ b/plugins/c9.error/raygun.connect.js @@ -4,7 +4,7 @@ var domain = require("domain"); var url = require("url"); var _ = require("lodash"); -plugin.consumes = ["raygun", "connect", "http", "connect.remote-address"]; +plugin.consumes = ["raygun", "connect", "http", "connect.remote-address", "metrics"]; plugin.provides = ["raygun.connect"]; module.exports = plugin; @@ -15,6 +15,7 @@ function plugin(options, imports, register) { var warningClient = raygun.warningClient; var connect = imports.connect; var server = imports.http.getServer(); + var metrics = imports.metrics; errorClient.user = warningClient.user = function(req) { return (req && req.user) ? req.user.name : ""; @@ -60,8 +61,10 @@ function plugin(options, imports, register) { var domain = socket._httpMessage && socket._httpMessage.domain; var req = domain && domain.members[0]; - if (req && req.url) + if (req && req.url) { + metrics.increment("request.timeout"); sendRequestWarning(new Error("Request timed out: " + req.url), req); + } }); From 43c6e2ebad9d00a1bb4a0b124f61b3f4e6902697 Mon Sep 17 00:00:00 2001 From: c9bot Date: Fri, 23 Oct 2015 18:11:42 +0200 Subject: [PATCH 320/430] c9-auto-bump 3.1.106 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 708819e1..6f07e791 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.105", + "version": "3.1.106", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 302bd6eec378507bb8ee51dec48c881a337ec45d Mon Sep 17 00:00:00 2001 From: c9bot Date: Fri, 23 Oct 2015 20:02:02 +0200 Subject: [PATCH 321/430] c9-auto-bump 3.1.107 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 6f07e791..6382784b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.106", + "version": "3.1.107", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 16a017d46f8aa19fcf4b2e7658e222094d342e3c Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Fri, 23 Oct 2015 22:05:07 +0000 Subject: [PATCH 322/430] Add parallel concurrecny to testrunner --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 6382784b..eec3e932 100644 --- a/package.json +++ b/package.json @@ -108,7 +108,7 @@ "c9.ide.save": "#4a4a60a004", "c9.ide.scm": "#dbad171e75", "c9.ide.terminal.monitor": "#b76f1c9f24", - "c9.ide.test": "#6e573f9334", + "c9.ide.test": "#b9433c3f56", "c9.ide.test.mocha": "#f6cc482886", "c9.ide.theme.flat": "#2de8414db7", "c9.ide.threewaymerge": "#229382aa0b", From c801776d2a4b010d8e144d829b18384dc7a07972 Mon Sep 17 00:00:00 2001 From: c9bot Date: Sat, 24 Oct 2015 03:23:11 +0200 Subject: [PATCH 323/430] c9-auto-bump 3.1.108 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index eec3e932..8959ef3c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.107", + "version": "3.1.108", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 9eb2fea4da8d102079d7d6c24d6bcf7e897f979b Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Sat, 24 Oct 2015 16:51:28 +0000 Subject: [PATCH 324/430] Update salesforce --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index eec3e932..ff75c9f5 100644 --- a/package.json +++ b/package.json @@ -108,7 +108,7 @@ "c9.ide.save": "#4a4a60a004", "c9.ide.scm": "#dbad171e75", "c9.ide.terminal.monitor": "#b76f1c9f24", - "c9.ide.test": "#b9433c3f56", + "c9.ide.test": "#160e773ed9", "c9.ide.test.mocha": "#f6cc482886", "c9.ide.theme.flat": "#2de8414db7", "c9.ide.threewaymerge": "#229382aa0b", From fd87fea478e2c615070ab4aaa7528ce045cc2099 Mon Sep 17 00:00:00 2001 From: c9bot Date: Sat, 24 Oct 2015 18:57:46 +0200 Subject: [PATCH 325/430] c9-auto-bump 3.1.109 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 10da9ba7..2c6ab018 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.108", + "version": "3.1.109", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From db8e6f639fd72bd6a5e62b587d6e8498decd65ab Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Sat, 24 Oct 2015 21:16:16 +0000 Subject: [PATCH 326/430] fix code coverage exception --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2c6ab018..5f455c57 100644 --- a/package.json +++ b/package.json @@ -108,7 +108,7 @@ "c9.ide.save": "#4a4a60a004", "c9.ide.scm": "#dbad171e75", "c9.ide.terminal.monitor": "#b76f1c9f24", - "c9.ide.test": "#160e773ed9", + "c9.ide.test": "#26cd260224", "c9.ide.test.mocha": "#f6cc482886", "c9.ide.theme.flat": "#2de8414db7", "c9.ide.threewaymerge": "#229382aa0b", From 4677ec9404b44fcafda685499fe4c5fb31167f4e Mon Sep 17 00:00:00 2001 From: c9bot Date: Sat, 24 Oct 2015 23:50:49 +0200 Subject: [PATCH 327/430] c9-auto-bump 3.1.110 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 5f455c57..13718b9b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.109", + "version": "3.1.110", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From a11af58899c7022ea2c8a98a4d1874305cf55da5 Mon Sep 17 00:00:00 2001 From: nightwing Date: Mon, 26 Oct 2015 02:14:00 +0400 Subject: [PATCH 328/430] fix typo --- node_modules/ace/lib/ace/layer/font_metrics.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node_modules/ace/lib/ace/layer/font_metrics.js b/node_modules/ace/lib/ace/layer/font_metrics.js index 7fea61e4..3959cb29 100644 --- a/node_modules/ace/lib/ace/layer/font_metrics.js +++ b/node_modules/ace/lib/ace/layer/font_metrics.js @@ -172,7 +172,7 @@ var FontMetrics = exports.FontMetrics = function(parentEl, interval) { this.getCharacterWidth = function(ch) { var w = this.charSizes[ch]; if (w === undefined) { - this.charSizes[ch] = this.$measureCharWidth(ch) / this.$characterSize.width; + w = this.charSizes[ch] = this.$measureCharWidth(ch) / this.$characterSize.width; } return w; }; From 68046d4445529db1e19c5c46a18e408c04bdbd4d Mon Sep 17 00:00:00 2001 From: nightwing Date: Mon, 26 Oct 2015 02:17:25 +0400 Subject: [PATCH 329/430] fix removeLicenceComments breaking packaged file --- node_modules/architect-build/module-deps.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/node_modules/architect-build/module-deps.js b/node_modules/architect-build/module-deps.js index 083429bd..daae178c 100644 --- a/node_modules/architect-build/module-deps.js +++ b/node_modules/architect-build/module-deps.js @@ -346,8 +346,11 @@ function removeUseStrict(module) { } function removeLicenceComments(module) { - if (/\.(js|jsx|css|less)/.test(module.path)) - module.source = module.source.replace(/(?:(;)|\n|^)\s*\/\*[\d\D]*?\*\/|(\n|^)\s*\/\/.*/g, "$1"); + if (/\.(js|jsx|css|less)/.test(module.path)) { + module.source = module.source.replace(/(\n|;|^|,)(?:[ \t]*(?:\/\*(?:[^*]|[*](?![/]))*?\*\/|\/\/.*\n))+(\n?)/gm, function(match, $1, $2) { + return $1 == $2 ? $1 : $1 + $2; + }); + } } function removeLicenceCommentsKeepLines(module) { if (/\.(js|jsx|css|less)/.test(module.path)) { From faa9773840909cd9434e0c87ce0eba43ea47a16d Mon Sep 17 00:00:00 2001 From: nightwing Date: Mon, 26 Oct 2015 04:11:52 +0400 Subject: [PATCH 330/430] fix misaligned buttons in conflict marker --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 13718b9b..4836f193 100644 --- a/package.json +++ b/package.json @@ -106,7 +106,7 @@ "c9.ide.run.build": "#0598fff697", "c9.ide.run.debug.xdebug": "#61dcbd0180", "c9.ide.save": "#4a4a60a004", - "c9.ide.scm": "#dbad171e75", + "c9.ide.scm": "#37a4ed0acf", "c9.ide.terminal.monitor": "#b76f1c9f24", "c9.ide.test": "#26cd260224", "c9.ide.test.mocha": "#f6cc482886", From 515478ef969d944ff7805462d640d4738d21bdc7 Mon Sep 17 00:00:00 2001 From: nightwing Date: Mon, 26 Oct 2015 04:24:29 +0400 Subject: [PATCH 331/430] fix +9984 Rename variable broken for two instances on the same line --- node_modules/ace/lib/ace/edit_session.js | 4 +- node_modules/ace/lib/ace/placeholder.js | 127 +++++++++++------------ package.json | 2 +- 3 files changed, 61 insertions(+), 72 deletions(-) diff --git a/node_modules/ace/lib/ace/edit_session.js b/node_modules/ace/lib/ace/edit_session.js index 81ae0680..7813b3d0 100644 --- a/node_modules/ace/lib/ace/edit_session.js +++ b/node_modules/ace/lib/ace/edit_session.js @@ -1158,7 +1158,7 @@ EditSession.$uid = 0; this.addFolds(delta.folds); } } - if (!dontSelect) { + if (!dontSelect && this.$undoSelect) { // console.log(deltas.selectionBefore + "uuu") if (deltas.selectionBefore) this.selection.fromJSON(deltas.selectionBefore); @@ -1187,7 +1187,7 @@ EditSession.$uid = 0; } } - if (!dontSelect) { + if (!dontSelect && this.$undoSelect) { if (deltas.selectionAfter) this.selection.fromJSON(deltas.selectionAfter); else diff --git a/node_modules/ace/lib/ace/placeholder.js b/node_modules/ace/lib/ace/placeholder.js index 0e299594..c4c88b11 100644 --- a/node_modules/ace/lib/ace/placeholder.js +++ b/node_modules/ace/lib/ace/placeholder.js @@ -70,7 +70,7 @@ var PlaceHolder = function(session, length, pos, others, mainClass, othersClass) this.$pos = pos; // Used for reset var undoStack = session.getUndoManager().$undoStack || session.getUndoManager().$undostack || {length: -1}; - this.$undoStackDepth = undoStack.length; + this.$undoStackDepth = undoStack.length; this.setup(); session.selection.on("changeCursor", this.$onCursorChange); @@ -90,21 +90,21 @@ var PlaceHolder = function(session, length, pos, others, mainClass, othersClass) var _self = this; var doc = this.doc; var session = this.session; - var pos = this.$pos; this.selectionBefore = session.selection.toJSON(); if (session.selection.inMultiSelectMode) session.selection.toSingleRange(); - this.pos = doc.createAnchor(pos.row, pos.column); - this.markerId = session.addMarker(new Range(pos.row, pos.column, pos.row, pos.column + this.length), this.mainClass, null, false); - this.pos.on("change", function(event) { - session.removeMarker(_self.markerId); - _self.markerId = session.addMarker(new Range(event.value.row, event.value.column, event.value.row, event.value.column+_self.length), _self.mainClass, null, false); - }); + this.pos = doc.createAnchor(this.$pos.row, this.$pos.column); + var pos = this.pos; + pos.$insertRight = true; + pos.detach(); + pos.markerId = session.addMarker(new Range(pos.row, pos.column, pos.row, pos.column + this.length), this.mainClass, null, false); this.others = []; this.$others.forEach(function(other) { var anchor = doc.createAnchor(other.row, other.column); + anchor.$insertRight = true; + anchor.detach(); _self.others.push(anchor); }); session.setUndoSelect(false); @@ -117,16 +117,12 @@ var PlaceHolder = function(session, length, pos, others, mainClass, othersClass) * **/ this.showOtherMarkers = function() { - if(this.othersActive) return; + if (this.othersActive) return; var session = this.session; var _self = this; this.othersActive = true; this.others.forEach(function(anchor) { anchor.markerId = session.addMarker(new Range(anchor.row, anchor.column, anchor.row, anchor.column+_self.length), _self.othersClass, null, false); - anchor.on("change", function(event) { - session.removeMarker(anchor.markerId); - anchor.markerId = session.addMarker(new Range(event.value.row, event.value.column, event.value.row, event.value.column+_self.length), _self.othersClass, null, false); - }); }); }; @@ -137,7 +133,7 @@ var PlaceHolder = function(session, length, pos, others, mainClass, othersClass) * **/ this.hideOtherMarkers = function() { - if(!this.othersActive) return; + if (!this.othersActive) return; this.othersActive = false; for (var i = 0; i < this.others.length; i++) { this.session.removeMarker(this.others[i].markerId); @@ -151,64 +147,61 @@ var PlaceHolder = function(session, length, pos, others, mainClass, othersClass) * **/ this.onUpdate = function(delta) { + if (this.$updating) + return this.updateAnchors(delta); + var range = delta; - if(range.start.row !== range.end.row) return; - if(range.start.row !== this.pos.row) return; - if (this.$updating) return; + if (range.start.row !== range.end.row) return; + if (range.start.row !== this.pos.row) return; this.$updating = true; var lengthDiff = delta.action === "insert" ? range.end.column - range.start.column : range.start.column - range.end.column; + var inMainRange = range.start.column >= this.pos.column && range.start.column <= this.pos.column + this.length + 1; + var distanceFromStart = range.start.column - this.pos.column; - if(range.start.column >= this.pos.column && range.start.column <= this.pos.column + this.length + 1) { - var distanceFromStart = range.start.column - this.pos.column; + this.updateAnchors(delta); + + if (inMainRange) this.length += lengthDiff; - if(!this.session.$fromUndo) { - if(delta.action === 'insert') { - for (var i = this.others.length - 1; i >= 0; i--) { - var otherPos = this.others[i]; - var newPos = {row: otherPos.row, column: otherPos.column + distanceFromStart}; - if(otherPos.row === range.start.row && range.start.column < otherPos.column) - newPos.column += lengthDiff; - this.doc.insertMergedLines(newPos, delta.lines); - } - } else if(delta.action === 'remove') { - for (var i = this.others.length - 1; i >= 0; i--) { - var otherPos = this.others[i]; - var newPos = {row: otherPos.row, column: otherPos.column + distanceFromStart}; - if(otherPos.row === range.start.row && range.start.column < otherPos.column) - newPos.column += lengthDiff; - this.doc.remove(new Range(newPos.row, newPos.column, newPos.row, newPos.column - lengthDiff)); - } + + if (inMainRange && !this.session.$fromUndo) { + if (delta.action === 'insert') { + for (var i = this.others.length - 1; i >= 0; i--) { + var otherPos = this.others[i]; + var newPos = {row: otherPos.row, column: otherPos.column + distanceFromStart}; + this.doc.insertMergedLines(newPos, delta.lines); } - // Special case: insert in beginning - if(range.start.column === this.pos.column && delta.action === 'insert') { - setTimeout(function() { - this.pos.setPosition(this.pos.row, this.pos.column - lengthDiff); - for (var i = 0; i < this.others.length; i++) { - var other = this.others[i]; - var newPos = {row: other.row, column: other.column - lengthDiff}; - if(other.row === range.start.row && range.start.column < other.column) - newPos.column += lengthDiff; - other.setPosition(newPos.row, newPos.column); - } - }.bind(this), 0); + } else if (delta.action === 'remove') { + for (var i = this.others.length - 1; i >= 0; i--) { + var otherPos = this.others[i]; + var newPos = {row: otherPos.row, column: otherPos.column + distanceFromStart}; + this.doc.remove(new Range(newPos.row, newPos.column, newPos.row, newPos.column - lengthDiff)); } - else if(range.start.column === this.pos.column && delta.action === 'remove') { - setTimeout(function() { - for (var i = 0; i < this.others.length; i++) { - var other = this.others[i]; - if(other.row === range.start.row && range.start.column < other.column) { - other.setPosition(other.row, other.column - lengthDiff); - } - } - }.bind(this), 0); - } - } - this.pos._emit("change", {value: this.pos}); - for (var i = 0; i < this.others.length; i++) { - this.others[i]._emit("change", {value: this.others[i]}); } } + this.$updating = false; + this.updateMarkers(); + }; + + this.updateAnchors = function(delta) { + this.pos.onChange(delta); + for (var i = this.others.length; i--;) + this.others[i].onChange(delta); + this.updateMarkers(); + }; + + this.updateMarkers = function() { + if (this.$updating) + return; + var _self = this; + var session = this.session; + var updateMarker = function(pos, className) { + session.removeMarker(pos.markerId); + pos.markerId = session.addMarker(new Range(pos.row, pos.column, pos.row, pos.column+_self.length), className, null, false); + }; + updateMarker(this.pos, this.mainClass); + for (var i = this.others.length; i--;) + updateMarker(this.others[i], this.othersClass); }; /** @@ -237,14 +230,10 @@ var PlaceHolder = function(session, length, pos, others, mainClass, othersClass) * **/ this.detach = function() { - this.session.removeMarker(this.markerId); + this.session.removeMarker(this.pos && this.pos.markerId); this.hideOtherMarkers(); this.doc.removeEventListener("change", this.$onUpdate); this.session.selection.removeEventListener("changeCursor", this.$onCursorChange); - this.pos.detach(); - for (var i = 0; i < this.others.length; i++) { - this.others[i].detach(); - } this.session.setUndoSelect(true); this.session = null; }; @@ -256,8 +245,8 @@ var PlaceHolder = function(session, length, pos, others, mainClass, othersClass) * **/ this.cancel = function() { - if(this.$undoStackDepth === -1) - throw Error("Canceling placeholders only supported with undo manager attached to session."); + if (this.$undoStackDepth === -1) + return; var undoManager = this.session.getUndoManager(); var undosRequired = (undoManager.$undoStack || undoManager.$undostack).length - this.$undoStackDepth; for (var i = 0; i < undosRequired; i++) { diff --git a/package.json b/package.json index 4836f193..34dc13f6 100644 --- a/package.json +++ b/package.json @@ -55,7 +55,7 @@ "c9" ], "c9plugins": { - "c9.ide.language": "#2a4a36fc18", + "c9.ide.language": "#2b5184c931", "c9.ide.language.css": "#a649f2a710", "c9.ide.language.generic": "#77d43cfaf0", "c9.ide.language.html": "#0f4078c187", From 1d5f95135f3d5a99b7dd8722137ccd50b4ed6415 Mon Sep 17 00:00:00 2001 From: c9bot Date: Mon, 26 Oct 2015 09:11:10 +0100 Subject: [PATCH 332/430] c9-auto-bump 3.1.111 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 13718b9b..d5c81133 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.110", + "version": "3.1.111", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 5e90c05b173bf61354e380f5f7e03f2dd23f4613 Mon Sep 17 00:00:00 2001 From: c9bot Date: Mon, 26 Oct 2015 09:12:16 +0100 Subject: [PATCH 333/430] c9-auto-bump 3.1.112 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d5c81133..84927cd1 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.111", + "version": "3.1.112", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 9d3794911e85b5f498606311d004ead30678289a Mon Sep 17 00:00:00 2001 From: c9bot Date: Mon, 26 Oct 2015 09:12:45 +0100 Subject: [PATCH 334/430] c9-auto-bump 3.1.113 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 84927cd1..cafba824 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.112", + "version": "3.1.113", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 5547c240f029192e06ab473dd579c709a8a98e59 Mon Sep 17 00:00:00 2001 From: c9bot Date: Mon, 26 Oct 2015 09:13:19 +0100 Subject: [PATCH 335/430] c9-auto-bump 3.1.114 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index cafba824..f5a2b6d0 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.113", + "version": "3.1.114", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From ce4ed9c4c9eaf2e977350cb9572d3f4cbdab664e Mon Sep 17 00:00:00 2001 From: c9bot Date: Mon, 26 Oct 2015 09:14:16 +0100 Subject: [PATCH 336/430] c9-auto-bump 3.1.115 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f5a2b6d0..84253ff8 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.114", + "version": "3.1.115", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 28fa93fc6658a9cd8e0ec42e2c259f52cff7f662 Mon Sep 17 00:00:00 2001 From: c9bot Date: Mon, 26 Oct 2015 09:52:10 +0100 Subject: [PATCH 337/430] c9-auto-bump 3.1.116 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 84253ff8..48edd80f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.115", + "version": "3.1.116", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 4e765c0342982c5aefc0af481408f77827c1a861 Mon Sep 17 00:00:00 2001 From: c9bot Date: Mon, 26 Oct 2015 10:13:38 +0100 Subject: [PATCH 338/430] c9-auto-bump 3.1.117 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 48edd80f..856748b7 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.116", + "version": "3.1.117", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From f53fc83f242f2a9ed36cb23f9e584a9bcec904cd Mon Sep 17 00:00:00 2001 From: c9bot Date: Mon, 26 Oct 2015 10:28:27 +0100 Subject: [PATCH 339/430] c9-auto-bump 3.1.118 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 856748b7..2c44226a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.117", + "version": "3.1.118", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 8fbdd9968ffadaf7b3d1e5e8a864b37ab960abb3 Mon Sep 17 00:00:00 2001 From: c9bot Date: Mon, 26 Oct 2015 11:01:15 +0100 Subject: [PATCH 340/430] c9-auto-bump 3.1.119 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2c44226a..5981de2a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.118", + "version": "3.1.119", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 86b113f02fcb85e800e4abeb90adc51ab14ff266 Mon Sep 17 00:00:00 2001 From: c9bot Date: Mon, 26 Oct 2015 12:00:17 +0100 Subject: [PATCH 341/430] c9-auto-bump 3.1.120 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 5981de2a..29d6c605 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.119", + "version": "3.1.120", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 9bee2d49da4082fbf99353de69b5d6677a0e5a94 Mon Sep 17 00:00:00 2001 From: c9bot Date: Mon, 26 Oct 2015 12:28:01 +0100 Subject: [PATCH 342/430] c9-auto-bump 3.1.121 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 29d6c605..5481cce9 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.120", + "version": "3.1.121", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 793e979dc17c755986717e2931d1ff6d78c9292b Mon Sep 17 00:00:00 2001 From: c9bot Date: Mon, 26 Oct 2015 12:36:09 +0100 Subject: [PATCH 343/430] c9-auto-bump 3.1.122 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 5481cce9..546a35c6 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.121", + "version": "3.1.122", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 135947358852b0da4137bdcdb0a3d3e749589115 Mon Sep 17 00:00:00 2001 From: c9bot Date: Mon, 26 Oct 2015 12:37:24 +0100 Subject: [PATCH 344/430] c9-auto-bump 3.1.123 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 546a35c6..c0083909 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.122", + "version": "3.1.123", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From bc39d0c7e70cf885a3ab3afb2b3c69c67a4f9547 Mon Sep 17 00:00:00 2001 From: c9bot Date: Mon, 26 Oct 2015 12:40:00 +0100 Subject: [PATCH 345/430] c9-auto-bump 3.1.124 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index c0083909..8e506c9f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.123", + "version": "3.1.124", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 5090ddaa3f2d5d54da65e7f5841c734f4b071363 Mon Sep 17 00:00:00 2001 From: c9bot Date: Mon, 26 Oct 2015 12:40:46 +0100 Subject: [PATCH 346/430] c9-auto-bump 3.1.125 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8e506c9f..dd414016 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.124", + "version": "3.1.125", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From f24dd4976ce926c7523f24513cd55dbd68007027 Mon Sep 17 00:00:00 2001 From: c9bot Date: Mon, 26 Oct 2015 13:54:34 +0100 Subject: [PATCH 347/430] c9-auto-bump 3.1.126 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index dd414016..e1b7bbb9 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.125", + "version": "3.1.126", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From b129c7a2e900550081da234b1f57a51d14d162fa Mon Sep 17 00:00:00 2001 From: nightwing Date: Mon, 26 Oct 2015 22:24:59 +0400 Subject: [PATCH 348/430] fix min width of filetree scrollbar --- plugins/c9.ide.tree/style.css | 2 +- plugins/c9.ide.tree/tree.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/c9.ide.tree/style.css b/plugins/c9.ide.tree/style.css index 7137f666..7d23332f 100644 --- a/plugins/c9.ide.tree/style.css +++ b/plugins/c9.ide.tree/style.css @@ -20,7 +20,7 @@ color : @selected-color; } -.filetree .tree-row.projectRoot, .filetree .tree-row:first-child { +.filetree .tree-row.projectRoot:first-child { margin-right: @tree-first-row-margin-right; } diff --git a/plugins/c9.ide.tree/tree.js b/plugins/c9.ide.tree/tree.js index 788068a8..477b0540 100644 --- a/plugins/c9.ide.tree/tree.js +++ b/plugins/c9.ide.tree/tree.js @@ -277,6 +277,7 @@ define(function(require, exports, module) { btnTreeSettings.setAttribute("submenu", mnuFilesSettings); tree.renderer.on("scrollbarVisibilityChanged", updateScrollBarSize); tree.renderer.on("resize", updateScrollBarSize); + tree.renderer.scrollBarV.$minWidth = 10; function updateScrollBarSize() { var scrollBarV = tree.renderer.scrollBarV; var w = scrollBarV.isVisible ? scrollBarV.getWidth() : 0; From ef5af704cdb11f22e7bef9804fe8090059a16b32 Mon Sep 17 00:00:00 2001 From: Matthijs van Henten Date: Tue, 27 Oct 2015 15:02:46 +0100 Subject: [PATCH 349/430] Revert "Fix issues with rename" --- node_modules/ace/lib/ace/edit_session.js | 4 +- .../ace/lib/ace/layer/font_metrics.js | 2 +- node_modules/ace/lib/ace/placeholder.js | 127 ++++++++++-------- node_modules/architect-build/module-deps.js | 7 +- package.json | 4 +- plugins/c9.ide.tree/style.css | 2 +- plugins/c9.ide.tree/tree.js | 1 - 7 files changed, 77 insertions(+), 70 deletions(-) diff --git a/node_modules/ace/lib/ace/edit_session.js b/node_modules/ace/lib/ace/edit_session.js index 7813b3d0..81ae0680 100644 --- a/node_modules/ace/lib/ace/edit_session.js +++ b/node_modules/ace/lib/ace/edit_session.js @@ -1158,7 +1158,7 @@ EditSession.$uid = 0; this.addFolds(delta.folds); } } - if (!dontSelect && this.$undoSelect) { + if (!dontSelect) { // console.log(deltas.selectionBefore + "uuu") if (deltas.selectionBefore) this.selection.fromJSON(deltas.selectionBefore); @@ -1187,7 +1187,7 @@ EditSession.$uid = 0; } } - if (!dontSelect && this.$undoSelect) { + if (!dontSelect) { if (deltas.selectionAfter) this.selection.fromJSON(deltas.selectionAfter); else diff --git a/node_modules/ace/lib/ace/layer/font_metrics.js b/node_modules/ace/lib/ace/layer/font_metrics.js index 3959cb29..7fea61e4 100644 --- a/node_modules/ace/lib/ace/layer/font_metrics.js +++ b/node_modules/ace/lib/ace/layer/font_metrics.js @@ -172,7 +172,7 @@ var FontMetrics = exports.FontMetrics = function(parentEl, interval) { this.getCharacterWidth = function(ch) { var w = this.charSizes[ch]; if (w === undefined) { - w = this.charSizes[ch] = this.$measureCharWidth(ch) / this.$characterSize.width; + this.charSizes[ch] = this.$measureCharWidth(ch) / this.$characterSize.width; } return w; }; diff --git a/node_modules/ace/lib/ace/placeholder.js b/node_modules/ace/lib/ace/placeholder.js index c4c88b11..0e299594 100644 --- a/node_modules/ace/lib/ace/placeholder.js +++ b/node_modules/ace/lib/ace/placeholder.js @@ -70,7 +70,7 @@ var PlaceHolder = function(session, length, pos, others, mainClass, othersClass) this.$pos = pos; // Used for reset var undoStack = session.getUndoManager().$undoStack || session.getUndoManager().$undostack || {length: -1}; - this.$undoStackDepth = undoStack.length; + this.$undoStackDepth = undoStack.length; this.setup(); session.selection.on("changeCursor", this.$onCursorChange); @@ -90,21 +90,21 @@ var PlaceHolder = function(session, length, pos, others, mainClass, othersClass) var _self = this; var doc = this.doc; var session = this.session; + var pos = this.$pos; this.selectionBefore = session.selection.toJSON(); if (session.selection.inMultiSelectMode) session.selection.toSingleRange(); - this.pos = doc.createAnchor(this.$pos.row, this.$pos.column); - var pos = this.pos; - pos.$insertRight = true; - pos.detach(); - pos.markerId = session.addMarker(new Range(pos.row, pos.column, pos.row, pos.column + this.length), this.mainClass, null, false); + this.pos = doc.createAnchor(pos.row, pos.column); + this.markerId = session.addMarker(new Range(pos.row, pos.column, pos.row, pos.column + this.length), this.mainClass, null, false); + this.pos.on("change", function(event) { + session.removeMarker(_self.markerId); + _self.markerId = session.addMarker(new Range(event.value.row, event.value.column, event.value.row, event.value.column+_self.length), _self.mainClass, null, false); + }); this.others = []; this.$others.forEach(function(other) { var anchor = doc.createAnchor(other.row, other.column); - anchor.$insertRight = true; - anchor.detach(); _self.others.push(anchor); }); session.setUndoSelect(false); @@ -117,12 +117,16 @@ var PlaceHolder = function(session, length, pos, others, mainClass, othersClass) * **/ this.showOtherMarkers = function() { - if (this.othersActive) return; + if(this.othersActive) return; var session = this.session; var _self = this; this.othersActive = true; this.others.forEach(function(anchor) { anchor.markerId = session.addMarker(new Range(anchor.row, anchor.column, anchor.row, anchor.column+_self.length), _self.othersClass, null, false); + anchor.on("change", function(event) { + session.removeMarker(anchor.markerId); + anchor.markerId = session.addMarker(new Range(event.value.row, event.value.column, event.value.row, event.value.column+_self.length), _self.othersClass, null, false); + }); }); }; @@ -133,7 +137,7 @@ var PlaceHolder = function(session, length, pos, others, mainClass, othersClass) * **/ this.hideOtherMarkers = function() { - if (!this.othersActive) return; + if(!this.othersActive) return; this.othersActive = false; for (var i = 0; i < this.others.length; i++) { this.session.removeMarker(this.others[i].markerId); @@ -147,61 +151,64 @@ var PlaceHolder = function(session, length, pos, others, mainClass, othersClass) * **/ this.onUpdate = function(delta) { - if (this.$updating) - return this.updateAnchors(delta); - var range = delta; - if (range.start.row !== range.end.row) return; - if (range.start.row !== this.pos.row) return; + if(range.start.row !== range.end.row) return; + if(range.start.row !== this.pos.row) return; + if (this.$updating) return; this.$updating = true; var lengthDiff = delta.action === "insert" ? range.end.column - range.start.column : range.start.column - range.end.column; - var inMainRange = range.start.column >= this.pos.column && range.start.column <= this.pos.column + this.length + 1; - var distanceFromStart = range.start.column - this.pos.column; - this.updateAnchors(delta); - - if (inMainRange) + if(range.start.column >= this.pos.column && range.start.column <= this.pos.column + this.length + 1) { + var distanceFromStart = range.start.column - this.pos.column; this.length += lengthDiff; - - if (inMainRange && !this.session.$fromUndo) { - if (delta.action === 'insert') { - for (var i = this.others.length - 1; i >= 0; i--) { - var otherPos = this.others[i]; - var newPos = {row: otherPos.row, column: otherPos.column + distanceFromStart}; - this.doc.insertMergedLines(newPos, delta.lines); + if(!this.session.$fromUndo) { + if(delta.action === 'insert') { + for (var i = this.others.length - 1; i >= 0; i--) { + var otherPos = this.others[i]; + var newPos = {row: otherPos.row, column: otherPos.column + distanceFromStart}; + if(otherPos.row === range.start.row && range.start.column < otherPos.column) + newPos.column += lengthDiff; + this.doc.insertMergedLines(newPos, delta.lines); + } + } else if(delta.action === 'remove') { + for (var i = this.others.length - 1; i >= 0; i--) { + var otherPos = this.others[i]; + var newPos = {row: otherPos.row, column: otherPos.column + distanceFromStart}; + if(otherPos.row === range.start.row && range.start.column < otherPos.column) + newPos.column += lengthDiff; + this.doc.remove(new Range(newPos.row, newPos.column, newPos.row, newPos.column - lengthDiff)); + } } - } else if (delta.action === 'remove') { - for (var i = this.others.length - 1; i >= 0; i--) { - var otherPos = this.others[i]; - var newPos = {row: otherPos.row, column: otherPos.column + distanceFromStart}; - this.doc.remove(new Range(newPos.row, newPos.column, newPos.row, newPos.column - lengthDiff)); + // Special case: insert in beginning + if(range.start.column === this.pos.column && delta.action === 'insert') { + setTimeout(function() { + this.pos.setPosition(this.pos.row, this.pos.column - lengthDiff); + for (var i = 0; i < this.others.length; i++) { + var other = this.others[i]; + var newPos = {row: other.row, column: other.column - lengthDiff}; + if(other.row === range.start.row && range.start.column < other.column) + newPos.column += lengthDiff; + other.setPosition(newPos.row, newPos.column); + } + }.bind(this), 0); + } + else if(range.start.column === this.pos.column && delta.action === 'remove') { + setTimeout(function() { + for (var i = 0; i < this.others.length; i++) { + var other = this.others[i]; + if(other.row === range.start.row && range.start.column < other.column) { + other.setPosition(other.row, other.column - lengthDiff); + } + } + }.bind(this), 0); } } + this.pos._emit("change", {value: this.pos}); + for (var i = 0; i < this.others.length; i++) { + this.others[i]._emit("change", {value: this.others[i]}); + } } - this.$updating = false; - this.updateMarkers(); - }; - - this.updateAnchors = function(delta) { - this.pos.onChange(delta); - for (var i = this.others.length; i--;) - this.others[i].onChange(delta); - this.updateMarkers(); - }; - - this.updateMarkers = function() { - if (this.$updating) - return; - var _self = this; - var session = this.session; - var updateMarker = function(pos, className) { - session.removeMarker(pos.markerId); - pos.markerId = session.addMarker(new Range(pos.row, pos.column, pos.row, pos.column+_self.length), className, null, false); - }; - updateMarker(this.pos, this.mainClass); - for (var i = this.others.length; i--;) - updateMarker(this.others[i], this.othersClass); }; /** @@ -230,10 +237,14 @@ var PlaceHolder = function(session, length, pos, others, mainClass, othersClass) * **/ this.detach = function() { - this.session.removeMarker(this.pos && this.pos.markerId); + this.session.removeMarker(this.markerId); this.hideOtherMarkers(); this.doc.removeEventListener("change", this.$onUpdate); this.session.selection.removeEventListener("changeCursor", this.$onCursorChange); + this.pos.detach(); + for (var i = 0; i < this.others.length; i++) { + this.others[i].detach(); + } this.session.setUndoSelect(true); this.session = null; }; @@ -245,8 +256,8 @@ var PlaceHolder = function(session, length, pos, others, mainClass, othersClass) * **/ this.cancel = function() { - if (this.$undoStackDepth === -1) - return; + if(this.$undoStackDepth === -1) + throw Error("Canceling placeholders only supported with undo manager attached to session."); var undoManager = this.session.getUndoManager(); var undosRequired = (undoManager.$undoStack || undoManager.$undostack).length - this.$undoStackDepth; for (var i = 0; i < undosRequired; i++) { diff --git a/node_modules/architect-build/module-deps.js b/node_modules/architect-build/module-deps.js index daae178c..083429bd 100644 --- a/node_modules/architect-build/module-deps.js +++ b/node_modules/architect-build/module-deps.js @@ -346,11 +346,8 @@ function removeUseStrict(module) { } function removeLicenceComments(module) { - if (/\.(js|jsx|css|less)/.test(module.path)) { - module.source = module.source.replace(/(\n|;|^|,)(?:[ \t]*(?:\/\*(?:[^*]|[*](?![/]))*?\*\/|\/\/.*\n))+(\n?)/gm, function(match, $1, $2) { - return $1 == $2 ? $1 : $1 + $2; - }); - } + if (/\.(js|jsx|css|less)/.test(module.path)) + module.source = module.source.replace(/(?:(;)|\n|^)\s*\/\*[\d\D]*?\*\/|(\n|^)\s*\/\/.*/g, "$1"); } function removeLicenceCommentsKeepLines(module) { if (/\.(js|jsx|css|less)/.test(module.path)) { diff --git a/package.json b/package.json index 307aafb4..70534d31 100644 --- a/package.json +++ b/package.json @@ -55,7 +55,7 @@ "c9" ], "c9plugins": { - "c9.ide.language": "#2b5184c931", + "c9.ide.language": "#a6ffafabce", "c9.ide.language.css": "#a649f2a710", "c9.ide.language.generic": "#77d43cfaf0", "c9.ide.language.html": "#0f4078c187", @@ -106,7 +106,7 @@ "c9.ide.run.build": "#0598fff697", "c9.ide.run.debug.xdebug": "#61dcbd0180", "c9.ide.save": "#4a4a60a004", - "c9.ide.scm": "#37a4ed0acf", + "c9.ide.scm": "#aabd0d181e", "c9.ide.terminal.monitor": "#b76f1c9f24", "c9.ide.test": "#26cd260224", "c9.ide.test.mocha": "#f6cc482886", diff --git a/plugins/c9.ide.tree/style.css b/plugins/c9.ide.tree/style.css index 7d23332f..7137f666 100644 --- a/plugins/c9.ide.tree/style.css +++ b/plugins/c9.ide.tree/style.css @@ -20,7 +20,7 @@ color : @selected-color; } -.filetree .tree-row.projectRoot:first-child { +.filetree .tree-row.projectRoot, .filetree .tree-row:first-child { margin-right: @tree-first-row-margin-right; } diff --git a/plugins/c9.ide.tree/tree.js b/plugins/c9.ide.tree/tree.js index 477b0540..788068a8 100644 --- a/plugins/c9.ide.tree/tree.js +++ b/plugins/c9.ide.tree/tree.js @@ -277,7 +277,6 @@ define(function(require, exports, module) { btnTreeSettings.setAttribute("submenu", mnuFilesSettings); tree.renderer.on("scrollbarVisibilityChanged", updateScrollBarSize); tree.renderer.on("resize", updateScrollBarSize); - tree.renderer.scrollBarV.$minWidth = 10; function updateScrollBarSize() { var scrollBarV = tree.renderer.scrollBarV; var w = scrollBarV.isVisible ? scrollBarV.getWidth() : 0; From 80a98cf92d01ea9e7aa37a20194786669d145464 Mon Sep 17 00:00:00 2001 From: Fabian Jakobs Date: Mon, 26 Oct 2015 15:38:37 +0000 Subject: [PATCH 350/430] use trusted redirect --- .../connect-architect/connect.redirect/redirect.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/node_modules/connect-architect/connect.redirect/redirect.js b/node_modules/connect-architect/connect.redirect/redirect.js index 010e98e8..a733ac71 100644 --- a/node_modules/connect-architect/connect.redirect/redirect.js +++ b/node_modules/connect-architect/connect.redirect/redirect.js @@ -1,11 +1,23 @@ "use strict"; +var url = require("url"); + module.exports = function(options, imports, register) { + var trustedHosts = options.trustedHosts || {}; + imports.connect.addResponseMethod("redirect", function(location) { this.writeHead(302, {Location: location}); this.end(""); }); + imports.connect.addResponseMethod("secureRedirect", function(location) { + var parsedLocation = url.parse(location); + if (!(location.host in trustedHosts)) + location = parsedLocation.path; + + this.writeHead(302, {Location: location}); + this.end(""); + }); imports.connect.addResponseMethod("returnTo", function(req, defaultReturn) { var url = defaultReturn || "/"; if (req.session && req.session.returnTo) { From 237f0d68ae3a2d13a216e5707d48a1be641be061 Mon Sep 17 00:00:00 2001 From: Fabian Jakobs Date: Mon, 26 Oct 2015 15:52:51 +0000 Subject: [PATCH 351/430] resure redirects in nc plugin --- node_modules/connect-architect/connect.redirect/redirect.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/node_modules/connect-architect/connect.redirect/redirect.js b/node_modules/connect-architect/connect.redirect/redirect.js index a733ac71..e803c6b1 100644 --- a/node_modules/connect-architect/connect.redirect/redirect.js +++ b/node_modules/connect-architect/connect.redirect/redirect.js @@ -4,7 +4,7 @@ var url = require("url"); module.exports = function(options, imports, register) { - var trustedHosts = options.trustedHosts || {}; + var trustedDomainsRe = options.trustedDomainsRe || {}; imports.connect.addResponseMethod("redirect", function(location) { this.writeHead(302, {Location: location}); @@ -12,7 +12,8 @@ module.exports = function(options, imports, register) { }); imports.connect.addResponseMethod("secureRedirect", function(location) { var parsedLocation = url.parse(location); - if (!(location.host in trustedHosts)) + + if (!trustedDomainsRe.test(parsedLocation.host)) location = parsedLocation.path; this.writeHead(302, {Location: location}); From bbfaab263e6a7edf5fb110cc68530887c29629f6 Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Wed, 28 Oct 2015 21:10:08 +0000 Subject: [PATCH 352/430] trivial fixes --- plugins/c9.ide.editors/editors.js | 2 ++ plugins/c9.ide.terminal/terminal.js | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/plugins/c9.ide.editors/editors.js b/plugins/c9.ide.editors/editors.js index 510e3273..38c50e54 100644 --- a/plugins/c9.ide.editors/editors.js +++ b/plugins/c9.ide.editors/editors.js @@ -183,6 +183,8 @@ define(function(require, module, exports) { }); plugin.on("unload", function(){ loaded = false; + defaultEditor = null; + group = null; }); /***** Register and define API *****/ diff --git a/plugins/c9.ide.terminal/terminal.js b/plugins/c9.ide.terminal/terminal.js index 832af404..29cbc884 100644 --- a/plugins/c9.ide.terminal/terminal.js +++ b/plugins/c9.ide.terminal/terminal.js @@ -356,6 +356,13 @@ define(function(require, exports, module) { } }); }); + handle.on("unload", function(){ + mnuTerminal = null; + lastEditor = null; + lastTerminal = null; + shownDotsHelp = null; + installPrompted = null; + }); handle.draw = function(){ ui.insertMarkup(null, markupMenu, handle); From 556d5223f8735e40d99ee338d6eb6c851606cccd Mon Sep 17 00:00:00 2001 From: c9bot Date: Thu, 29 Oct 2015 03:23:38 +0100 Subject: [PATCH 353/430] c9-auto-bump 3.1.127 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 70534d31..bbc7cb87 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.126", + "version": "3.1.127", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From b87ea41386bc27c1e4b1099852db646d2212e44b Mon Sep 17 00:00:00 2001 From: Fabian Jakobs Date: Thu, 29 Oct 2015 15:21:20 +0100 Subject: [PATCH 354/430] hotfix --- node_modules/connect-architect/connect.redirect/redirect.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node_modules/connect-architect/connect.redirect/redirect.js b/node_modules/connect-architect/connect.redirect/redirect.js index e803c6b1..43b634f6 100644 --- a/node_modules/connect-architect/connect.redirect/redirect.js +++ b/node_modules/connect-architect/connect.redirect/redirect.js @@ -4,7 +4,7 @@ var url = require("url"); module.exports = function(options, imports, register) { - var trustedDomainsRe = options.trustedDomainsRe || {}; + var trustedDomainsRe = options.trustedDomainsRe || /.*/; imports.connect.addResponseMethod("redirect", function(location) { this.writeHead(302, {Location: location}); From 7f8807032235352c136a3fc0123d32eeebb5f219 Mon Sep 17 00:00:00 2001 From: c9bot Date: Thu, 29 Oct 2015 15:21:33 +0100 Subject: [PATCH 355/430] c9-auto-bump 3.1.128 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index bbc7cb87..1c5067bf 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.127", + "version": "3.1.128", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 4c6eb793de5a9866dfb9ea1ac44f67f5631d1eb8 Mon Sep 17 00:00:00 2001 From: Fabian Jakobs Date: Thu, 29 Oct 2015 15:13:31 +0000 Subject: [PATCH 356/430] extract into module --- node_modules/c9/json-with-re.js | 28 ++++++++++++++++++++++++++++ node_modules/c9/json-with-re_test.js | 27 +++++++++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 node_modules/c9/json-with-re.js create mode 100644 node_modules/c9/json-with-re_test.js diff --git a/node_modules/c9/json-with-re.js b/node_modules/c9/json-with-re.js new file mode 100644 index 00000000..0f748bc1 --- /dev/null +++ b/node_modules/c9/json-with-re.js @@ -0,0 +1,28 @@ +/** + * JSON (de-)serializer with support for encosing regular expressions + */ +"use strict"; + +exports.replacer = function(key, value) { + if (value instanceof RegExp) + return ("__REGEXP " + value.toString()); + else + return value; +}; + +exports.reviver = function(key, value) { + if ((value || "").toString().indexOf("__REGEXP ") == 0) { + var m = value.split("__REGEXP ")[1].match(/\/(.*)\/(.*)?/); + return new RegExp(m[1], m[2] || ""); + } + else + return value; +}; + +exports.stringify = function(value, space) { + return JSON.stringify(value, exports.replacer, space); +}; + +exports.parse = function(rext) { + return JSON.parse(rext, exports.reviver); +}; \ No newline at end of file diff --git a/node_modules/c9/json-with-re_test.js b/node_modules/c9/json-with-re_test.js new file mode 100644 index 00000000..5ccb3ecb --- /dev/null +++ b/node_modules/c9/json-with-re_test.js @@ -0,0 +1,27 @@ +/*global describe it before after beforeEach afterEach define*/ +"use strict"; +"use server"; +"use mocha"; + +require("c9/inline-mocha")(module); + +var assert = require("assert-diff"); +var reJSON = require("./json-with-re"); + +describe(__filename, function(){ + it("should encode regular expressions", function() { + assert.deepEqual(reJSON.stringify({ foo: /foo/ }), '{"foo":"__REGEXP /foo/"}'); + assert.deepEqual(reJSON.stringify({ foo: /foo\//gi }), "{\"foo\":\"__REGEXP /foo\\\\//gi\"}"); + }); + it("should decode regular expressions", function() { + assert.deepEqual(reJSON.parse('{"foo":"__REGEXP /foo/"}'), { foo: /foo/ }); + assert.deepEqual(reJSON.parse("{\"foo\":\"__REGEXP /foo\\\\//gi\"}"), { foo: /foo\//gi }); + }); + it("should deal with null values", function() { + var o = { + foo: null, + bar: /dd/ + }; + assert.deepEqual(reJSON.parse(reJSON.stringify(o)), o); + }); +}); From 0c280207fbf8c3b33cf0486afea6a3324e42c7dc Mon Sep 17 00:00:00 2001 From: Fabian Jakobs Date: Thu, 29 Oct 2015 15:18:16 +0000 Subject: [PATCH 357/430] cleanup --- node_modules/c9/json-with-re.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/node_modules/c9/json-with-re.js b/node_modules/c9/json-with-re.js index 0f748bc1..e8f475db 100644 --- a/node_modules/c9/json-with-re.js +++ b/node_modules/c9/json-with-re.js @@ -11,9 +11,9 @@ exports.replacer = function(key, value) { }; exports.reviver = function(key, value) { - if ((value || "").toString().indexOf("__REGEXP ") == 0) { - var m = value.split("__REGEXP ")[1].match(/\/(.*)\/(.*)?/); - return new RegExp(m[1], m[2] || ""); + if ((value + "").indexOf("__REGEXP ") == 0) { + var m = value.match(/__REGEXP \/(.*)\/(.*)?/); + return new RegExp(m[1], m[2]); } else return value; From da21981740513e684733944ee8391b6bda5e6a9d Mon Sep 17 00:00:00 2001 From: c9bot Date: Thu, 29 Oct 2015 16:30:47 +0100 Subject: [PATCH 358/430] c9-auto-bump 3.1.129 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1c5067bf..a2c545b8 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.128", + "version": "3.1.129", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 678cf96b1ffbaf971e0c865c9250fc98c32717c0 Mon Sep 17 00:00:00 2001 From: c9bot Date: Thu, 29 Oct 2015 17:40:42 +0100 Subject: [PATCH 359/430] c9-auto-bump 3.1.130 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a2c545b8..d6b956fe 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.129", + "version": "3.1.130", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From cf69b96a1aac9fb45c1e4412cf7bc3203d25f2dd Mon Sep 17 00:00:00 2001 From: Matthijs van Henten Date: Thu, 29 Oct 2015 20:50:02 +0000 Subject: [PATCH 360/430] .test is more robust them match --- node_modules/c9/urls.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node_modules/c9/urls.js b/node_modules/c9/urls.js index c48a3cff..0284030c 100644 --- a/node_modules/c9/urls.js +++ b/node_modules/c9/urls.js @@ -91,12 +91,12 @@ function getBaseUrl(req, sourceBaseUrlPattern, targetBaseUrlPattern) { targetHost = "c9.io"; } - if (targetHost.match(/^(ide|vfs)./) && !targetBaseUrlPattern) + if (/^(ide|vfs)./.test(targetHost) && !targetBaseUrlPattern) console.error(new Error("Warning: no targetBaseUrlPattern specified, will stay at " + targetHost), { sourceBaseUrlPattern: sourceBaseUrlPattern }); - if (targetHost.match(/^(ide|vfs)./)) + if (/^(ide|vfs)./.test(targetHost)) console.trace("Warning: possibly incorrect baseUrl constructed, with 'ide.' in the hostname: " + targetHost); return replaceDomain(targetBaseUrlPattern || sourceBaseUrlPattern, targetHost) From 5779b998b675df7ac5c80c77531dec6a8953bf4c Mon Sep 17 00:00:00 2001 From: c9bot Date: Fri, 30 Oct 2015 00:28:48 +0100 Subject: [PATCH 361/430] c9-auto-bump 3.1.131 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d6b956fe..1bd88225 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.130", + "version": "3.1.131", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From feb1b5f13015a0097cb3a3f8c2bacd8f7a4c9b94 Mon Sep 17 00:00:00 2001 From: c9bot Date: Fri, 30 Oct 2015 09:33:58 +0100 Subject: [PATCH 362/430] c9-auto-bump 3.1.132 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1bd88225..6a54d87c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.131", + "version": "3.1.132", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 25ba890cc196003d8e480b0abb524756dc5c8dd4 Mon Sep 17 00:00:00 2001 From: c9bot Date: Fri, 30 Oct 2015 09:34:31 +0100 Subject: [PATCH 363/430] c9-auto-bump 3.1.133 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 6a54d87c..8e13c9e2 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.132", + "version": "3.1.133", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 5c787215a0de6e1353f2f78579efae1f7d4b0f40 Mon Sep 17 00:00:00 2001 From: c9bot Date: Fri, 30 Oct 2015 10:07:10 +0100 Subject: [PATCH 364/430] c9-auto-bump 3.1.134 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8e13c9e2..40854eb6 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.133", + "version": "3.1.134", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From a5cc1c1bf2556916f0e0292ba8a6475bc2e3572f Mon Sep 17 00:00:00 2001 From: c9bot Date: Fri, 30 Oct 2015 10:39:48 +0100 Subject: [PATCH 365/430] c9-auto-bump 3.1.135 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 40854eb6..9b86268c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.134", + "version": "3.1.135", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From bd02d742ff563323fb18ed0b58b19d8ae055c870 Mon Sep 17 00:00:00 2001 From: c9bot Date: Fri, 30 Oct 2015 11:00:20 +0100 Subject: [PATCH 366/430] c9-auto-bump 3.1.136 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9b86268c..3a74d08d 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.135", + "version": "3.1.136", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 94e4cf4478c2e7f398ea319bedfd47c4812cfc50 Mon Sep 17 00:00:00 2001 From: c9bot Date: Fri, 30 Oct 2015 11:45:51 +0100 Subject: [PATCH 367/430] c9-auto-bump 3.1.137 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 3a74d08d..670c8ee1 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.136", + "version": "3.1.137", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 88a430cedbce9198cd50ccaa9b2c7c94a134cc76 Mon Sep 17 00:00:00 2001 From: Fabian Jakobs Date: Fri, 30 Oct 2015 10:58:21 +0000 Subject: [PATCH 368/430] VFS also needs CORS --- plugins/c9.vfs.server/vfs.server.js | 1 - 1 file changed, 1 deletion(-) diff --git a/plugins/c9.vfs.server/vfs.server.js b/plugins/c9.vfs.server/vfs.server.js index f3aa3954..5a117cf3 100644 --- a/plugins/c9.vfs.server/vfs.server.js +++ b/plugins/c9.vfs.server/vfs.server.js @@ -36,7 +36,6 @@ function plugin(options, imports, register) { var connect = imports.connect; var render = imports["connect.render"]; var analytics = imports["analytics"]; - var async = require("async"); var Types = require("frontdoor").Types; var error = require("http-error"); From 651323fcba7e340ecc17b6a91077fe10e09df65a Mon Sep 17 00:00:00 2001 From: c9bot Date: Fri, 30 Oct 2015 12:04:23 +0100 Subject: [PATCH 369/430] c9-auto-bump 3.1.138 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 670c8ee1..c1bc0d0d 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.137", + "version": "3.1.138", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 95014d2053b5ef312d9c082bb9f1ddfbb2907507 Mon Sep 17 00:00:00 2001 From: c9bot Date: Fri, 30 Oct 2015 12:16:12 +0100 Subject: [PATCH 370/430] c9-auto-bump 3.1.139 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index c1bc0d0d..404da208 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.138", + "version": "3.1.139", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 5929d3e8ea99bfd46553c5abdc993d0f42ada8be Mon Sep 17 00:00:00 2001 From: c9bot Date: Fri, 30 Oct 2015 12:27:43 +0100 Subject: [PATCH 371/430] c9-auto-bump 3.1.140 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 404da208..ab1e8c6c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.139", + "version": "3.1.140", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 2aa2ef486e50dfdc12ec21e86b9598e1e5e9b7f4 Mon Sep 17 00:00:00 2001 From: c9bot Date: Fri, 30 Oct 2015 14:27:16 +0100 Subject: [PATCH 372/430] c9-auto-bump 3.1.141 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ab1e8c6c..691b6537 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.140", + "version": "3.1.141", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 3b35aa73e6bc52314723f5ececbb20eeb11eba3d Mon Sep 17 00:00:00 2001 From: c9bot Date: Fri, 30 Oct 2015 15:02:36 +0100 Subject: [PATCH 373/430] c9-auto-bump 3.1.142 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 691b6537..a55ad73c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.141", + "version": "3.1.142", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From a9ecf82050d529b5205dbe3175dfbc8484e96b31 Mon Sep 17 00:00:00 2001 From: Fabian Jakobs Date: Fri, 30 Oct 2015 14:27:04 +0000 Subject: [PATCH 374/430] refactor request metrics --- plugins/c9.error/raygun.connect.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/plugins/c9.error/raygun.connect.js b/plugins/c9.error/raygun.connect.js index a52bac9c..c10315f2 100644 --- a/plugins/c9.error/raygun.connect.js +++ b/plugins/c9.error/raygun.connect.js @@ -61,11 +61,8 @@ function plugin(options, imports, register) { var domain = socket._httpMessage && socket._httpMessage.domain; var req = domain && domain.members[0]; - if (req && req.url) { - metrics.increment("request.timeout"); + if (req && req.url) sendRequestWarning(new Error("Request timed out: " + req.url), req); - } - }); function sendRequestError(err, req) { From 958a4f6f9cae8a50121c04a8e8d430c8a267d2a5 Mon Sep 17 00:00:00 2001 From: c9bot Date: Fri, 30 Oct 2015 15:28:20 +0100 Subject: [PATCH 375/430] c9-auto-bump 3.1.143 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a55ad73c..4feab6c5 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.142", + "version": "3.1.143", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From b31fc9d50680b673656417e68083e4e07620a501 Mon Sep 17 00:00:00 2001 From: c9bot Date: Fri, 30 Oct 2015 15:34:06 +0100 Subject: [PATCH 376/430] c9-auto-bump 3.1.144 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4feab6c5..a609fbeb 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.143", + "version": "3.1.144", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From c55f2e4db897425a6a4ce15a31391f7dd9edf41d Mon Sep 17 00:00:00 2001 From: c9bot Date: Fri, 30 Oct 2015 15:41:44 +0100 Subject: [PATCH 377/430] c9-auto-bump 3.1.145 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a609fbeb..191bc0a5 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.144", + "version": "3.1.145", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From dd33f8570dab240a363f14b35aa68291f70708b1 Mon Sep 17 00:00:00 2001 From: c9bot Date: Fri, 30 Oct 2015 15:43:59 +0100 Subject: [PATCH 378/430] c9-auto-bump 3.1.146 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 191bc0a5..1f2a791a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.145", + "version": "3.1.146", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From eab9a430b9de9c23803a63a6615b3c8bf329e52c Mon Sep 17 00:00:00 2001 From: c9bot Date: Fri, 30 Oct 2015 16:15:33 +0100 Subject: [PATCH 379/430] c9-auto-bump 3.1.147 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1f2a791a..64bd9216 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.146", + "version": "3.1.147", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From a8fd28c3bd65394765ed1a1cb6363a59915481ae Mon Sep 17 00:00:00 2001 From: nightwing Date: Fri, 30 Oct 2015 21:41:43 +0000 Subject: [PATCH 380/430] Do not show variable values from unrealted frames reverts https://github.com/ajaxorg/lib-v8debug/pull/1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 64bd9216..9b16a2f7 100644 --- a/package.json +++ b/package.json @@ -71,7 +71,7 @@ "c9.ide.find": "#35379124ca", "c9.ide.find.infiles": "#c132ad243c", "c9.ide.find.replace": "#44772dd796", - "c9.ide.run.debug": "#a46abda8e9", + "c9.ide.run.debug": "#3b76105b4e", "c9.automate": "#47e2c429c9", "c9.ide.ace.emmet": "#6dc4585e02", "c9.ide.ace.gotoline": "#a8ff07c8f4", From a3ff90429d2626c30c6c0481b14ed21fedf450c7 Mon Sep 17 00:00:00 2001 From: c9bot Date: Fri, 30 Oct 2015 23:54:51 +0100 Subject: [PATCH 381/430] c9-auto-bump 3.1.148 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9b16a2f7..a8b05350 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.147", + "version": "3.1.148", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From e7a45e077a1217e1dee70919e1eeccb30ac379c1 Mon Sep 17 00:00:00 2001 From: Dana Date: Mon, 2 Nov 2015 10:04:41 +0000 Subject: [PATCH 382/430] fix build npm --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 0b108e06..ac005ae1 100644 --- a/.gitignore +++ b/.gitignore @@ -25,6 +25,7 @@ plugins/c9.fs/mock/ # ignore node_modules node_modules/* +plugins/c9.batch/analytics/node_modules/ # except git subtrees !node_modules/ace* !node_modules/architect* From 9b9a9f52b1b95a389363595b87c0f6fb7c1e4ad6 Mon Sep 17 00:00:00 2001 From: c9bot Date: Mon, 2 Nov 2015 12:05:48 +0100 Subject: [PATCH 383/430] c9-auto-bump 3.1.149 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a8b05350..f973dff8 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.148", + "version": "3.1.149", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 12e74d036749363914305dfec056715de81d2ed8 Mon Sep 17 00:00:00 2001 From: c9bot Date: Mon, 2 Nov 2015 12:41:04 +0100 Subject: [PATCH 384/430] c9-auto-bump 3.1.150 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f973dff8..fafbb42e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.149", + "version": "3.1.150", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 4a72d312d8ecb6bacb04ac1ab2349a068aa17957 Mon Sep 17 00:00:00 2001 From: Fabian Jakobs Date: Mon, 2 Nov 2015 11:41:06 +0000 Subject: [PATCH 385/430] fix VFS cache race condition causing VFS conneciton to never be cleaned up. --- plugins/c9.vfs.server/cache.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugins/c9.vfs.server/cache.js b/plugins/c9.vfs.server/cache.js index bc174ae4..47a0d4d5 100644 --- a/plugins/c9.vfs.server/cache.js +++ b/plugins/c9.vfs.server/cache.js @@ -5,7 +5,6 @@ define(function(require, exports, module) { main.provides = ["vfs.cache"]; return main; - function main(options, imports, register) { var Plugin = imports.Plugin; var connectVfs = imports["vfs.connect"].connect; @@ -58,6 +57,7 @@ define(function(require, exports, module) { entry.emit("loaded"); cache[vfsid] = entry; + entry.keepalive(); vfs.on("destroy", function() { remove(vfsid); @@ -126,7 +126,6 @@ define(function(require, exports, module) { }; entry.keepalive = function() { - clearTimeout(timer); startTimer(); }; @@ -139,7 +138,6 @@ define(function(require, exports, module) { }, maxAge); } - startTimer(); return entry; } From 1242e7b6d1ae2d1cce277aa6cc8e886ffd836f22 Mon Sep 17 00:00:00 2001 From: Fabian Jakobs Date: Mon, 2 Nov 2015 11:58:11 +0000 Subject: [PATCH 386/430] monitor VFS connect time --- plugins/c9.vfs.server/cache.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/plugins/c9.vfs.server/cache.js b/plugins/c9.vfs.server/cache.js index 47a0d4d5..69d21f9c 100644 --- a/plugins/c9.vfs.server/cache.js +++ b/plugins/c9.vfs.server/cache.js @@ -1,13 +1,18 @@ define(function(require, exports, module) { "use strict"; - main.consumes = ["Plugin", "vfs.connect"]; + main.consumes = [ + "Plugin", + "vfs.connect", + "metrics" + ]; main.provides = ["vfs.cache"]; return main; function main(options, imports, register) { var Plugin = imports.Plugin; var connectVfs = imports["vfs.connect"].connect; + var metrics = imports.metrics; var async = require("async"); var uid = require("c9/uid"); @@ -53,6 +58,7 @@ define(function(require, exports, module) { if (err) return done(err); entry.connectTime = Date.now() - entry.startTime; + metrics.timing("vfs.connect.time", entry.connectTime); entry.emit("loaded"); From 5a4ac85bb0caad0bec773b85f4c48f2cbc718d94 Mon Sep 17 00:00:00 2001 From: c9bot Date: Mon, 2 Nov 2015 13:54:30 +0100 Subject: [PATCH 387/430] c9-auto-bump 3.1.151 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index fafbb42e..2427ff44 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.150", + "version": "3.1.151", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 5ccca87699dc2e534a255eb85eb77e0704ab97f5 Mon Sep 17 00:00:00 2001 From: c9bot Date: Mon, 2 Nov 2015 14:19:00 +0100 Subject: [PATCH 388/430] c9-auto-bump 3.1.152 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2427ff44..b147ad57 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.151", + "version": "3.1.152", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 8a7b88725231cbfa9b965c00fd93c21f0a308c21 Mon Sep 17 00:00:00 2001 From: c9bot Date: Mon, 2 Nov 2015 14:30:01 +0100 Subject: [PATCH 389/430] c9-auto-bump 3.1.153 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b147ad57..dcc4b50e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.152", + "version": "3.1.153", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 8deb9cdd654bd88fd61354e2b8212833aaca86f3 Mon Sep 17 00:00:00 2001 From: Tim Robinson Date: Mon, 2 Nov 2015 13:44:54 +0000 Subject: [PATCH 390/430] Adding mock timing metric --- plugins/c9.metrics/mock_metrics.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/c9.metrics/mock_metrics.js b/plugins/c9.metrics/mock_metrics.js index 56a13241..7eb884f4 100644 --- a/plugins/c9.metrics/mock_metrics.js +++ b/plugins/c9.metrics/mock_metrics.js @@ -13,7 +13,8 @@ function plugin(options, imports, register) { register(null, { "metrics": { log: function() {}, - increment: function() {} + increment: function() {}, + timing: function() {} } }); } \ No newline at end of file From 1a67c45a73aa967fdd1d96ac7f46ac272dcaf222 Mon Sep 17 00:00:00 2001 From: c9bot Date: Mon, 2 Nov 2015 14:45:12 +0100 Subject: [PATCH 391/430] c9-auto-bump 3.1.154 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index dcc4b50e..0b981757 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.153", + "version": "3.1.154", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 185478afd17c2c72b04538cd87784ec56624a469 Mon Sep 17 00:00:00 2001 From: c9bot Date: Mon, 2 Nov 2015 15:40:06 +0100 Subject: [PATCH 392/430] c9-auto-bump 3.1.155 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0b981757..315fa573 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.154", + "version": "3.1.155", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From db139b5bd1c61023658b111cd739f0db482f5210 Mon Sep 17 00:00:00 2001 From: c9bot Date: Mon, 2 Nov 2015 16:32:29 +0100 Subject: [PATCH 393/430] c9-auto-bump 3.1.156 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 315fa573..0911de15 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.155", + "version": "3.1.156", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From ed5e44722a6e13114defecfcaa70b5e6e3d433f4 Mon Sep 17 00:00:00 2001 From: c9bot Date: Mon, 2 Nov 2015 18:37:55 +0100 Subject: [PATCH 394/430] c9-auto-bump 3.1.157 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0911de15..83dc937e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.156", + "version": "3.1.157", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From dee91171c0fda8372088bcacfa3abd4483dbbf0d Mon Sep 17 00:00:00 2001 From: c9bot Date: Mon, 2 Nov 2015 18:42:50 +0100 Subject: [PATCH 395/430] c9-auto-bump 3.1.158 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 83dc937e..e0913aaf 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.157", + "version": "3.1.158", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 752c4eeb46c10898b94ceffbddf50f37f29d4746 Mon Sep 17 00:00:00 2001 From: c9bot Date: Mon, 2 Nov 2015 21:51:29 +0100 Subject: [PATCH 396/430] c9-auto-bump 3.1.159 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e0913aaf..8c6fca8e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.158", + "version": "3.1.159", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 903ab6f1d81f45ca2c7a7f8c8e2776fdf20e731f Mon Sep 17 00:00:00 2001 From: c9bot Date: Mon, 2 Nov 2015 21:55:56 +0100 Subject: [PATCH 397/430] c9-auto-bump 3.1.160 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8c6fca8e..2b3de9c8 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.159", + "version": "3.1.160", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From ecd1d928def3a7cdf734483e79bc1308a9f016cd Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Mon, 2 Nov 2015 16:17:58 -0800 Subject: [PATCH 398/430] Add api support for salesforce --- configs/client-default.js | 2 ++ plugins/c9.ide.editors/tab.js | 7 +++++++ plugins/c9.ide.editors/undomanager.js | 6 ++++-- plugins/c9.ide.ui/forms.js | 29 ++++++++++++++++----------- 4 files changed, 30 insertions(+), 14 deletions(-) diff --git a/configs/client-default.js b/configs/client-default.js index 746f4a6b..c586565f 100644 --- a/configs/client-default.js +++ b/configs/client-default.js @@ -721,6 +721,8 @@ module.exports = function(options) { "plugins/c9.ide.test.mocha/mocha", + "plugins/salesforce.sync/package.editor", + // git integration "plugins/c9.ide.scm/scm", "plugins/c9.ide.scm/scmpanel", diff --git a/plugins/c9.ide.editors/tab.js b/plugins/c9.ide.editors/tab.js index 11c18440..e841ebef 100644 --- a/plugins/c9.ide.editors/tab.js +++ b/plugins/c9.ide.editors/tab.js @@ -258,6 +258,8 @@ define(function(require, module, exports) { ); return; } + + var currentValue = plugin.document.value; editorType = type; amlTab.setAttribute("type", "editor::" + type); @@ -265,6 +267,11 @@ define(function(require, module, exports) { if (amlPane.getPage() == amlTab) { amlPane.activepage = -1; amlPane.set(amlTab); + + plugin.document.value = currentValue; + // TODO undo managers for different editors conflict + // however, resetting removes changed state + // plugin.document.undoManager.reset(); } callback(); diff --git a/plugins/c9.ide.editors/undomanager.js b/plugins/c9.ide.editors/undomanager.js index a275e5a5..2bfbe834 100644 --- a/plugins/c9.ide.editors/undomanager.js +++ b/plugins/c9.ide.editors/undomanager.js @@ -25,6 +25,7 @@ define(function(require, module, exports) { return false; var item = stack[position]; + if (!item) return; if (!item.undo) item = stack[position] = findItem(item); position--; @@ -43,6 +44,7 @@ define(function(require, module, exports) { position++; var item = stack[position]; + if (!item) return; if (!item.redo) item = stack[position] = findItem(item); item.redo(); @@ -119,7 +121,7 @@ define(function(require, module, exports) { stack: stack .filter(function(item){ return item; }) .map(function(item) { - return item.getState ? item.getState() : item; + return item && item.getState ? item.getState() : item; }) }; } @@ -141,7 +143,7 @@ define(function(require, module, exports) { return emit("itemFind", { state: compressedItem }); } - function reset(){ + function reset(keepChange){ if (position == -1) return; diff --git a/plugins/c9.ide.ui/forms.js b/plugins/c9.ide.ui/forms.js index 471a9e4a..0ab3e6f8 100644 --- a/plugins/c9.ide.ui/forms.js +++ b/plugins/c9.ide.ui/forms.js @@ -456,20 +456,25 @@ define(function(require, exports, module) { case "dropdown": var dropdown = el.lastChild; - var data = item.items.map(function(item) { - return ""; - }).join(""); - if (data) { - setTimeout(function(){ - dropdown.$model.load("" + data + ""); - + if (item.items) { + var data = item.items.map(function(item) { + return ""; + }).join(""); + if (data) { setTimeout(function(){ - var value = item.value || dropdown.value; - dropdown.value = -999; - dropdown.setAttribute("value", value); + dropdown.$model.load("" + data + ""); + + setTimeout(function(){ + var value = item.value || dropdown.value; + dropdown.value = -999; + dropdown.setAttribute("value", value); + }); }); - }); + } + } + else if (item.value) { + dropdown.setAttribute("value", item.value); } break; default: From 78f96f3333712cff066da1693282bde3c767055a Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Tue, 3 Nov 2015 01:28:38 +0000 Subject: [PATCH 399/430] cleanup --- configs/client-default.js | 2 -- plugins/c9.ide.editors/undomanager.js | 6 ++---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/configs/client-default.js b/configs/client-default.js index c586565f..746f4a6b 100644 --- a/configs/client-default.js +++ b/configs/client-default.js @@ -721,8 +721,6 @@ module.exports = function(options) { "plugins/c9.ide.test.mocha/mocha", - "plugins/salesforce.sync/package.editor", - // git integration "plugins/c9.ide.scm/scm", "plugins/c9.ide.scm/scmpanel", diff --git a/plugins/c9.ide.editors/undomanager.js b/plugins/c9.ide.editors/undomanager.js index 2bfbe834..a275e5a5 100644 --- a/plugins/c9.ide.editors/undomanager.js +++ b/plugins/c9.ide.editors/undomanager.js @@ -25,7 +25,6 @@ define(function(require, module, exports) { return false; var item = stack[position]; - if (!item) return; if (!item.undo) item = stack[position] = findItem(item); position--; @@ -44,7 +43,6 @@ define(function(require, module, exports) { position++; var item = stack[position]; - if (!item) return; if (!item.redo) item = stack[position] = findItem(item); item.redo(); @@ -121,7 +119,7 @@ define(function(require, module, exports) { stack: stack .filter(function(item){ return item; }) .map(function(item) { - return item && item.getState ? item.getState() : item; + return item.getState ? item.getState() : item; }) }; } @@ -143,7 +141,7 @@ define(function(require, module, exports) { return emit("itemFind", { state: compressedItem }); } - function reset(keepChange){ + function reset(){ if (position == -1) return; From 514725b68dd3757bc27c2b3e86dc6ec1999a1e62 Mon Sep 17 00:00:00 2001 From: c9bot Date: Tue, 3 Nov 2015 10:06:45 +0100 Subject: [PATCH 400/430] c9-auto-bump 3.1.161 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2b3de9c8..9158546f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.160", + "version": "3.1.161", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 2436702683cd04350c1e0e56cf8bbfd4af343ec4 Mon Sep 17 00:00:00 2001 From: c9bot Date: Tue, 3 Nov 2015 10:07:22 +0100 Subject: [PATCH 401/430] c9-auto-bump 3.1.162 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9158546f..1e2727f1 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.161", + "version": "3.1.162", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From eeaff6a2f60ce33bb8a5c35fcd6ac938689b676c Mon Sep 17 00:00:00 2001 From: c9bot Date: Tue, 3 Nov 2015 10:12:29 +0100 Subject: [PATCH 402/430] c9-auto-bump 3.1.163 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1e2727f1..8407964f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.162", + "version": "3.1.163", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 32f7ea506b5b78951b157bde6de77741095fb15e Mon Sep 17 00:00:00 2001 From: c9bot Date: Tue, 3 Nov 2015 10:20:47 +0100 Subject: [PATCH 403/430] c9-auto-bump 3.1.164 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8407964f..6f291b45 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.163", + "version": "3.1.164", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From d25fc70bf50b694a1937699be19be568a5ed8b44 Mon Sep 17 00:00:00 2001 From: c9bot Date: Tue, 3 Nov 2015 10:22:37 +0100 Subject: [PATCH 404/430] c9-auto-bump 3.1.165 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 6f291b45..a3056ba3 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.164", + "version": "3.1.165", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 0c52967b3cf417000d50321f62562f3b8683ec4f Mon Sep 17 00:00:00 2001 From: c9bot Date: Tue, 3 Nov 2015 10:23:14 +0100 Subject: [PATCH 405/430] c9-auto-bump 3.1.166 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a3056ba3..1f982492 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.165", + "version": "3.1.166", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 1688a34a54db226c7a2e97cd32fd9fe7bd963897 Mon Sep 17 00:00:00 2001 From: c9bot Date: Tue, 3 Nov 2015 10:35:44 +0100 Subject: [PATCH 406/430] c9-auto-bump 3.1.167 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1f982492..5ced3996 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.166", + "version": "3.1.167", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 434bafeb651e5871581604969879b0efe37fdfb5 Mon Sep 17 00:00:00 2001 From: c9bot Date: Tue, 3 Nov 2015 10:37:32 +0100 Subject: [PATCH 407/430] c9-auto-bump 3.1.168 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 5ced3996..00deada6 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.167", + "version": "3.1.168", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From dc5621514d4a07a24b321daa987d8c2372781c87 Mon Sep 17 00:00:00 2001 From: c9bot Date: Tue, 3 Nov 2015 10:55:18 +0100 Subject: [PATCH 408/430] c9-auto-bump 3.1.169 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 00deada6..d3875452 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.168", + "version": "3.1.169", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 8fb63e2fd929b79cf797e9704043ba9a8a6b3a78 Mon Sep 17 00:00:00 2001 From: c9bot Date: Tue, 3 Nov 2015 11:02:18 +0100 Subject: [PATCH 409/430] c9-auto-bump 3.1.170 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d3875452..9cef5203 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.169", + "version": "3.1.170", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 14792de0b6b0a986c7b907c45cd8c3ba9b778bd3 Mon Sep 17 00:00:00 2001 From: c9bot Date: Tue, 3 Nov 2015 11:33:05 +0100 Subject: [PATCH 410/430] c9-auto-bump 3.1.171 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9cef5203..d636eb84 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.170", + "version": "3.1.171", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 299174bd002ffef92aff583eccca4ef44a96e503 Mon Sep 17 00:00:00 2001 From: c9bot Date: Tue, 3 Nov 2015 11:42:30 +0100 Subject: [PATCH 411/430] c9-auto-bump 3.1.172 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d636eb84..3b3e8fbe 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.171", + "version": "3.1.172", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 20974c7df086dfd5fc33593d1c4aab95c11f28d2 Mon Sep 17 00:00:00 2001 From: c9bot Date: Tue, 3 Nov 2015 11:53:25 +0100 Subject: [PATCH 412/430] c9-auto-bump 3.1.173 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 3b3e8fbe..d68cc449 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.172", + "version": "3.1.173", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 9c7c60d1c195aa62f18947a4cb5357791f9fcd66 Mon Sep 17 00:00:00 2001 From: c9bot Date: Tue, 3 Nov 2015 12:12:18 +0100 Subject: [PATCH 413/430] c9-auto-bump 3.1.174 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d68cc449..8108ee0a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.173", + "version": "3.1.174", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 233fe06c35bbac71400157de62492fc2a334d9a2 Mon Sep 17 00:00:00 2001 From: c9bot Date: Tue, 3 Nov 2015 12:52:30 +0100 Subject: [PATCH 414/430] c9-auto-bump 3.1.175 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8108ee0a..d81b6aa2 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.174", + "version": "3.1.175", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From d8d7bb3a7e3de3bd98bfcc7dcdfe3fa9f079ec23 Mon Sep 17 00:00:00 2001 From: c9bot Date: Tue, 3 Nov 2015 12:57:29 +0100 Subject: [PATCH 415/430] c9-auto-bump 3.1.176 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d81b6aa2..3ded882c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.175", + "version": "3.1.176", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 671b8b12127a9c7f00ff576f01768e257427cde8 Mon Sep 17 00:00:00 2001 From: c9bot Date: Tue, 3 Nov 2015 13:12:48 +0100 Subject: [PATCH 416/430] c9-auto-bump 3.1.177 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 3ded882c..c11e2cd0 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.176", + "version": "3.1.177", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 7cdd6ca576b687047dda0526446a3272eff35a37 Mon Sep 17 00:00:00 2001 From: c9bot Date: Tue, 3 Nov 2015 14:31:08 +0100 Subject: [PATCH 417/430] c9-auto-bump 3.1.178 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index c11e2cd0..2f38b0c4 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.177", + "version": "3.1.178", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 49ff859f04c6e873d007b52c90111dbe1ced32e7 Mon Sep 17 00:00:00 2001 From: c9bot Date: Tue, 3 Nov 2015 15:16:00 +0100 Subject: [PATCH 418/430] c9-auto-bump 3.1.179 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2f38b0c4..09a8b24e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.178", + "version": "3.1.179", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 139d6fcc38d1ad23ca16f1bb87c64b923ef4ea45 Mon Sep 17 00:00:00 2001 From: c9bot Date: Tue, 3 Nov 2015 16:06:41 +0100 Subject: [PATCH 419/430] c9-auto-bump 3.1.180 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 09a8b24e..f6531d37 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.179", + "version": "3.1.180", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From f5a35b07cb1c2ba9a454e9ec512f136108a65b18 Mon Sep 17 00:00:00 2001 From: c9bot Date: Tue, 3 Nov 2015 16:15:44 +0100 Subject: [PATCH 420/430] c9-auto-bump 3.1.181 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f6531d37..15316a9c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.180", + "version": "3.1.181", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From e70c4220239d3997f06677cc8861abf90d20696a Mon Sep 17 00:00:00 2001 From: c9bot Date: Tue, 3 Nov 2015 16:27:49 +0100 Subject: [PATCH 421/430] c9-auto-bump 3.1.182 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 15316a9c..09ab43b9 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.181", + "version": "3.1.182", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 80c71387e96ac26ada08a4de84e6ed2b35564fcd Mon Sep 17 00:00:00 2001 From: c9bot Date: Tue, 3 Nov 2015 17:12:00 +0100 Subject: [PATCH 422/430] c9-auto-bump 3.1.183 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 09ab43b9..96f21f99 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.182", + "version": "3.1.183", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From e856f0ac1aaddd90053282964d450c477406f734 Mon Sep 17 00:00:00 2001 From: matthijs Date: Tue, 3 Nov 2015 16:23:30 +0000 Subject: [PATCH 423/430] WIP deploy workflow-staging --- server.js | 1 + 1 file changed, 1 insertion(+) diff --git a/server.js b/server.js index 61d0c5ba..a67c528b 100755 --- a/server.js +++ b/server.js @@ -41,6 +41,7 @@ function getDefaultSettings() { var suffix = hostname.trim().split("-").pop() || ""; var modes = { + "workflowstaging": "workflow-staging", "prod": "deploy", "beta": "beta", "dev": "devel", From 01a9437492a33ad6694667d79c79d03c48e059d1 Mon Sep 17 00:00:00 2001 From: c9bot Date: Tue, 3 Nov 2015 17:36:51 +0100 Subject: [PATCH 424/430] c9-auto-bump 3.1.184 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 96f21f99..8c507f58 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.183", + "version": "3.1.184", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 582e3f8e89578a13c9e2b1d22e91f38b040baf87 Mon Sep 17 00:00:00 2001 From: c9bot Date: Tue, 3 Nov 2015 17:55:57 +0100 Subject: [PATCH 425/430] c9-auto-bump 3.1.185 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8c507f58..c175c3d3 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.184", + "version": "3.1.185", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 644f9f066a9523af299c6b3ff7f7d0524c8a4b70 Mon Sep 17 00:00:00 2001 From: c9bot Date: Tue, 3 Nov 2015 18:23:42 +0100 Subject: [PATCH 426/430] c9-auto-bump 3.1.186 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index c175c3d3..2dd7e10b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.185", + "version": "3.1.186", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 92f0adf4019dea2379874754a77b01236b71ea94 Mon Sep 17 00:00:00 2001 From: c9bot Date: Tue, 3 Nov 2015 18:38:28 +0100 Subject: [PATCH 427/430] c9-auto-bump 3.1.187 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2dd7e10b..272f8854 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.186", + "version": "3.1.187", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 96426b0c56979e202604481c0538a939855f5ec3 Mon Sep 17 00:00:00 2001 From: c9bot Date: Tue, 3 Nov 2015 18:38:51 +0100 Subject: [PATCH 428/430] c9-auto-bump 3.1.188 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 272f8854..9bbb2a52 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.187", + "version": "3.1.188", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From caec661e728ad2112ba110f33ec2281cd644ffe1 Mon Sep 17 00:00:00 2001 From: c9bot Date: Wed, 4 Nov 2015 10:15:47 +0100 Subject: [PATCH 429/430] c9-auto-bump 3.1.189 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9bbb2a52..a5881a8e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.188", + "version": "3.1.189", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", From 1cfcb0cc4e8d64cd9c3290bb7173238514c86a0d Mon Sep 17 00:00:00 2001 From: c9bot Date: Wed, 4 Nov 2015 10:35:57 +0100 Subject: [PATCH 430/430] c9-auto-bump 3.1.190 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a5881a8e..789620e8 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.1.189", + "version": "3.1.190", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9",