src/utils/ExtensionUtils.js
function getModulePath(module, path) {
        var modulePath = module.uri.substr(0, module.uri.lastIndexOf("/") + 1);
        if (path) {
            modulePath += path;
        }

        return modulePath;
    }
function getModulePath(module, path) {
        var modulePath = module.uri.substr(0, module.uri.lastIndexOf("/") + 1);
        if (path) {
            modulePath += path;
        }

        return modulePath;
    }
function getModulePath ( module , path ) { var modulePath = module . uri . substr ( 0 , module . uri . lastIndexOf ( "/" ) + 1 ) ; if ( path ) { modulePath += path ; } return modulePath ; }
Returns a path to an extension module.

@param {!module} module Module provided by RequireJS
@param {?string} path Relative path from the extension folder to a file
@return {!string} The path to the module's folder
Returns a path to an extension module .