src/extensions/default/CodeFolding/main.js
function deinit() {
        _isInitialized = false;

        KeyBindingManager.removeBinding(collapseKey);
        KeyBindingManager.removeBinding(expandKey);
        KeyBindingManager.removeBinding(collapseAllKey);
        KeyBindingManager.removeBinding(expandAllKey);
        KeyBindingManager.removeBinding(collapseAllKeyMac);
        KeyBindingManager.removeBinding(expandAllKeyMac);

        //remove menus
        Menus.getMenu(Menus.AppMenuBar.VIEW_MENU).removeMenuDivider(codeFoldingMenuDivider.id);
        Menus.getMenu(Menus.AppMenuBar.VIEW_MENU).removeMenuItem(COLLAPSE);
        Menus.getMenu(Menus.AppMenuBar.VIEW_MENU).removeMenuItem(EXPAND);
        Menus.getMenu(Menus.AppMenuBar.VIEW_MENU).removeMenuItem(COLLAPSE_ALL);
        Menus.getMenu(Menus.AppMenuBar.VIEW_MENU).removeMenuItem(EXPAND_ALL);

        EditorManager.off(".CodeFolding");
        DocumentManager.off(".CodeFolding");
        ProjectManager.off(".CodeFolding");

        // Remove gutter & revert collapsed sections in all currently open editors
        Editor.forEveryEditor(function (editor) {
            CodeMirror.commands.unfoldAll(editor._codeMirror);
        });
        removeGutters();
    }
function deinit() {
        _isInitialized = false;

        KeyBindingManager.removeBinding(collapseKey);
        KeyBindingManager.removeBinding(expandKey);
        KeyBindingManager.removeBinding(collapseAllKey);
        KeyBindingManager.removeBinding(expandAllKey);
        KeyBindingManager.removeBinding(collapseAllKeyMac);
        KeyBindingManager.removeBinding(expandAllKeyMac);

        //remove menus
        Menus.getMenu(Menus.AppMenuBar.VIEW_MENU).removeMenuDivider(codeFoldingMenuDivider.id);
        Menus.getMenu(Menus.AppMenuBar.VIEW_MENU).removeMenuItem(COLLAPSE);
        Menus.getMenu(Menus.AppMenuBar.VIEW_MENU).removeMenuItem(EXPAND);
        Menus.getMenu(Menus.AppMenuBar.VIEW_MENU).removeMenuItem(COLLAPSE_ALL);
        Menus.getMenu(Menus.AppMenuBar.VIEW_MENU).removeMenuItem(EXPAND_ALL);

        EditorManager.off(".CodeFolding");
        DocumentManager.off(".CodeFolding");
        ProjectManager.off(".CodeFolding");

        // Remove gutter & revert collapsed sections in all currently open editors
        Editor.forEveryEditor(function (editor) {
            CodeMirror.commands.unfoldAll(editor._codeMirror);
        });
        removeGutters();
    }
function deinit ( ) { _isInitialized = false ; KeyBindingManager . removeBinding ( collapseKey ) ; KeyBindingManager . removeBinding ( expandKey ) ; KeyBindingManager . removeBinding ( collapseAllKey ) ; KeyBindingManager . removeBinding ( expandAllKey ) ; KeyBindingManager . removeBinding ( collapseAllKeyMac ) ; KeyBindingManager . removeBinding ( expandAllKeyMac ) ; //remove menus Menus . getMenu ( Menus . AppMenuBar . VIEW_MENU ) . removeMenuDivider ( codeFoldingMenuDivider . id ) ; Menus . getMenu ( Menus . AppMenuBar . VIEW_MENU ) . removeMenuItem ( COLLAPSE ) ; Menus . getMenu ( Menus . AppMenuBar . VIEW_MENU ) . removeMenuItem ( EXPAND ) ; Menus . getMenu ( Menus . AppMenuBar . VIEW_MENU ) . removeMenuItem ( COLLAPSE_ALL ) ; Menus . getMenu ( Menus . AppMenuBar . VIEW_MENU ) . removeMenuItem ( EXPAND_ALL ) ; EditorManager . off ( ".CodeFolding" ) ; DocumentManager . off ( ".CodeFolding" ) ; ProjectManager . off ( ".CodeFolding" ) ; // Remove gutter & revert collapsed sections in all currently open editors Editor . forEveryEditor ( function ( editor ) { CodeMirror . commands . unfoldAll ( editor . _codeMirror ) ; } ) ; removeGutters ( ) ; }
Remove code-folding functionality
Remove code - folding functionality