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