src/document/DocumentCommandHandlers.js
function handleReload(loadWithoutExtensions) {
        var href    = window.location.href,
            params  = new UrlParams();

        // Make sure the Reload Without User Extensions parameter is removed
        params.parse();

        if (loadWithoutExtensions) {
            if (!params.get("reloadWithoutUserExts")) {
                params.put("reloadWithoutUserExts", true);
            }
        } else {
            if (params.get("reloadWithoutUserExts")) {
                params.remove("reloadWithoutUserExts");
            }
        }

        if (href.indexOf("?") !== -1) {
            href = href.substring(0, href.indexOf("?"));
        }

        if (!params.isEmpty()) {
            href += "?" + params.toString();
        }

        // Give Mac native menus extra time to update shortcut highlighting.
        // Prevents the menu highlighting from getting messed up after reload.
        window.setTimeout(function () {
            browserReload(href);
        }, 100);
    }
function handleReload(loadWithoutExtensions) {
        var href    = window.location.href,
            params  = new UrlParams();

        // Make sure the Reload Without User Extensions parameter is removed
        params.parse();

        if (loadWithoutExtensions) {
            if (!params.get("reloadWithoutUserExts")) {
                params.put("reloadWithoutUserExts", true);
            }
        } else {
            if (params.get("reloadWithoutUserExts")) {
                params.remove("reloadWithoutUserExts");
            }
        }

        if (href.indexOf("?") !== -1) {
            href = href.substring(0, href.indexOf("?"));
        }

        if (!params.isEmpty()) {
            href += "?" + params.toString();
        }

        // Give Mac native menus extra time to update shortcut highlighting.
        // Prevents the menu highlighting from getting messed up after reload.
        window.setTimeout(function () {
            browserReload(href);
        }, 100);
    }
function handleReload ( loadWithoutExtensions ) { var href = window . location . href , params = new UrlParams ( ) ; // Make sure the Reload Without User Extensions parameter is removed params . parse ( ) ; if ( loadWithoutExtensions ) { if ( ! params . get ( "reloadWithoutUserExts" ) ) { params . put ( "reloadWithoutUserExts" , true ) ; } } else { if ( params . get ( "reloadWithoutUserExts" ) ) { params . remove ( "reloadWithoutUserExts" ) ; } } if ( href . indexOf ( "?" ) !== - 1 ) { href = href . substring ( 0 , href . indexOf ( "?" ) ) ; } if ( ! params . isEmpty ( ) ) { href += "?" + params . toString ( ) ; } // Give Mac native menus extra time to update shortcut highlighting. // Prevents the menu highlighting from getting messed up after reload. window . setTimeout ( function ( ) { browserReload ( href ) ; } , 100 ) ; }
Restarts brackets Handler
@param {boolean=} loadWithoutExtensions - true to restart without extensions,
otherwise extensions are loadeed as it is durning a typical boot
Restarts brackets Handler