From 1d7a2d1a2a7993b09f9dbca5183f0f0bfcb0f1a9 Mon Sep 17 00:00:00 2001 From: Alex Brausewetter Date: Sat, 25 Jul 2015 14:51:43 -0700 Subject: [PATCH] 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 +});