Skip to content

Commit

Permalink
Load codefolding with other codemirror addons
Browse files Browse the repository at this point in the history
  • Loading branch information
petetnt committed Dec 20, 2015
1 parent 5719dcc commit 6b2f730
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
3 changes: 3 additions & 0 deletions src/brackets.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ define(function (require, exports, module) {
require("codemirror/addon/search/searchcursor");
require("codemirror/addon/selection/active-line");
require("codemirror/addon/selection/mark-selection");
require("codemirror/addon/fold/brace-fold");
require("codemirror/addon/fold/comment-fold");
require("codemirror/addon/fold/markdown-fold");
require("codemirror/keymap/sublime");

// Load dependent modules
Expand Down
7 changes: 1 addition & 6 deletions src/extensions/default/CodeFolding/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,7 @@ define(function (require, exports, module) {
expandAllKeyMac = "Cmd-Shift-1";

ExtensionUtils.loadStyleSheet(module, "main.less");

// Load CodeMirror addons
brackets.getModule(["thirdparty/CodeMirror/addon/fold/brace-fold"]);
brackets.getModule(["thirdparty/CodeMirror/addon/fold/comment-fold"]);
brackets.getModule(["thirdparty/CodeMirror/addon/fold/markdown-fold"]);


// Still using slightly modified versions of the foldcode.js and foldgutter.js since we
// need to modify the gutter click handler to take care of some collapse and expand features
// e.g. collapsing all children when 'alt' key is pressed
Expand Down

0 comments on commit 6b2f730

Please sign in to comment.