kopia lustrzana https://github.com/c9/core
tweaks
rodzic
b334d81203
commit
4bffb5490e
|
@ -86,7 +86,7 @@
|
|||
"c9.ide.installer": "#38f5840924",
|
||||
"c9.ide.mount": "#cb45b621f1",
|
||||
"c9.ide.navigate": "#64156c7f4a",
|
||||
"c9.ide.newresource": "#39c7b1aa23",
|
||||
"c9.ide.newresource": "#f1f0624768",
|
||||
"c9.ide.openfiles": "#28a4f5af16",
|
||||
"c9.ide.preview": "#dba2f4214d",
|
||||
"c9.ide.preview.browser": "#ac18aaf31d",
|
||||
|
|
|
@ -600,8 +600,9 @@ define(function(require, exports, module) {
|
|||
paths["plugins/" + packageName] = cwd;
|
||||
|
||||
var additional = [];
|
||||
var packedConfig = Object.keys(config);
|
||||
var packedConfig = config.slice();
|
||||
if (staticPlugin) {
|
||||
console.log(packedConfig)
|
||||
additional.push(staticPlugin);
|
||||
packedConfig.push(staticPlugin.id);
|
||||
}
|
||||
|
@ -609,7 +610,7 @@ define(function(require, exports, module) {
|
|||
additional.push({
|
||||
id: path,
|
||||
source: 'define("' + path + '", [],' +
|
||||
JSON.stringify(config.concat(), null, 4) + ')',
|
||||
JSON.stringify(packedConfig, null, 4) + ')',
|
||||
literal : true,
|
||||
order: -1
|
||||
});
|
||||
|
|
|
@ -285,12 +285,10 @@ define(function(require, exports, module) {
|
|||
});
|
||||
|
||||
services.ace.defineSyntax({
|
||||
name: join(pluginName, "modes", data.name),
|
||||
name: join(pluginName, "modes", filename.replace(/\.js$/, "")),
|
||||
caption: mode.caption,
|
||||
extensions: (mode.extensions || "").trim()
|
||||
.split(",")
|
||||
.map(function(n){ return n.trim(); })
|
||||
.filter(function(n){ return n; })
|
||||
.replace(/\s*,\s*/g, "|")
|
||||
});
|
||||
break;
|
||||
case "outline":
|
||||
|
@ -306,7 +304,7 @@ define(function(require, exports, module) {
|
|||
services.run.addRunner(filename, data, plugin);
|
||||
break;
|
||||
case "snippets":
|
||||
services.complete.addSnippet(data, plugin);
|
||||
services["language.complete"].addSnippet(data, plugin);
|
||||
break;
|
||||
case "themes":
|
||||
services.ace.addTheme(data, plugin);
|
||||
|
|
Ładowanie…
Reference in New Issue