const ExtensionLoader = brackets.getModule("utils/ExtensionLoader")Extension loaded event
Extension disabled event
Extension load failed event
Responsible to get the default extension path
Returns the full path of the default user extensions directory. This is in the users application support directory, which is typically /Users/"user"/Application Support/Brackets/extensions/user on the mac, and C:\Users"user"\AppData\Roaming\Brackets\extensions\user on windows.
Returns the require.js require context used to load an extension
Kind: global function
Returns: Object - A require.js require object used to load the extension, or undefined if
there is no require object with that name
| Param | Type | Description |
|---|---|---|
| name | string |
used to identify the extension |
Loads the extension that lives at baseUrl into its own Require.js context
Kind: global function
Returns: $.Promise - A promise object that is resolved when the extension is loaded, or rejected
if the extension fails to load or throws an exception immediately when loaded.
(Note: if extension contains a JS syntax error, promise is resolved not rejected).
| Param | Type | Description |
|---|---|---|
| name | string |
used to identify the extension |
| config | Object |
object with baseUrl property containing absolute path of extension |
| entryPoint | string |
name of the main js file to load |
Runs unit tests for the extension that lives at baseUrl into its own Require.js context
Kind: global function
Returns: $.Promise - A promise object that is resolved when all extensions complete loading.
| Param | Type | Description |
|---|---|---|
| name | string |
used to identify the extension |
| config | Object |
object with baseUrl property containing absolute path of extension |
| entryPoint | string |
name of the main js file to load |
Loads All brackets default extensions from brackets base https URL.
Kind: global function
Returns: $.Promise - A promise object that is resolved when all extensions complete loading.
Loads the extension that lives at baseUrl into its own Require.js context
Kind: global function
Returns: $.Promise - A promise object that is resolved when all extensions complete loading.
| Param | Type | Description |
|---|---|---|
| directory | string |
an absolute native path that contains a directory of extensions. each subdirectory is interpreted as an independent extension |
Loads a given extension at the path from virtual fs. Used by debug menu> load project as extension
Kind: global function
| Param |
|---|
| directory |
Runs unit test for the extension that lives at baseUrl into its own Require.js context
Kind: global function
Returns: $.Promise - A promise object that is resolved when all extensions complete loading.
| Param | Type | Description |
|---|---|---|
| directory | string |
an absolute native path that contains a directory of extensions. each subdirectory is interpreted as an independent extension |
Runs unit test for the extension that lives at baseUrl into its own Require.js context
Kind: global function
Returns: $.Promise - A promise object that is resolved when all extensions complete loading.
To get the source path for extension
Kind: global function
| Param |
|---|
| extensionPath |
Load extensions.
Kind: global function
Returns: $.Promise - A promise object that is resolved when all extensions complete loading.
| Param | Type | Description |
|---|---|---|
| A | Array.<string> |
list containing references to extension source location. A source location may be either (a) a folder name inside src/extensions or (b) an absolute path. |
Uninstall a deprecated extension
Kind: global function
Returns: Promise - A promise that resolves when the extension is uninstalled successfully
| Param | Type | Description |
|---|---|---|
| extensionID | string |
The ID of the extension to uninstall |