code: function loadCurrentTheme() {
          var theme = getCurrentTheme();
  
          var pending = theme && FileUtils.readAsText(theme.file)
              .then(function (lessContent) {
                  return lessifyTheme(lessContent.replace(commentRegex, ""), theme);
              })
              .then(function (content) {
                  var result = extractScrollbars(content);
                  theme.scrollbar = result.scrollbar;
                  return result.content;
              })
              .then(function (cssContent) {
                  $("body").toggleClass("dark", theme.dark);
                  styleNode.text(cssContent);
                  return theme;
              });
  
          return $.when(pending);
      }
docs: @private
  Process and load the current theme into the editor
  
  @return {$.Promise} promise object resolved with the theme object and all
  corresponding new css/less and scrollbar information