kopia lustrzana https://github.com/c9/core
Show extra menu items only in "devel" mode
rodzic
6d0801d590
commit
1c5f6c115e
|
@ -93,7 +93,7 @@ module.exports = function(options) {
|
|||
{
|
||||
packagePath: "plugins/c9.ide.plugins/manager",
|
||||
staticPrefix: staticPrefix + "/plugins/c9.ide.plugins",
|
||||
defaultEnabled: devel
|
||||
devel: devel
|
||||
},
|
||||
{
|
||||
packagePath: "plugins/c9.ide.plugins/debug"
|
||||
|
|
|
@ -101,7 +101,7 @@ define(function(require, exports, module) {
|
|||
var ENABLED = c9.location.indexOf("debug=2") > -1
|
||||
|| experimental.addExperiment(
|
||||
"plugin-manager",
|
||||
options.defaultEnabled,
|
||||
options.devel,
|
||||
"SDK/Plugin Manager"
|
||||
);
|
||||
|
||||
|
@ -136,6 +136,8 @@ define(function(require, exports, module) {
|
|||
// updateCommandsFromSettings();
|
||||
// }, plugin);
|
||||
|
||||
|
||||
if (options.devel) {
|
||||
commands.addCommand({
|
||||
name: "reloadLastPlugin",
|
||||
bindKey: {mac: "F4", win: "F4"},
|
||||
|
@ -147,7 +149,6 @@ define(function(require, exports, module) {
|
|||
reload(name);
|
||||
}
|
||||
}, plugin);
|
||||
|
||||
commands.addCommand({
|
||||
name: "reloadPlugin",
|
||||
group: "Plugins",
|
||||
|
@ -167,6 +168,7 @@ define(function(require, exports, module) {
|
|||
command: "reloadLastPlugin",
|
||||
isAvailable: getLastReloaded
|
||||
}), 1200, plugin);
|
||||
}
|
||||
|
||||
menus.addItemByPath("File/New Plugin", null, 210, plugin);
|
||||
Object.keys(TEMPLATES).forEach(function(name){
|
||||
|
|
Ładowanie…
Reference in New Issue