kopia lustrzana https://github.com/c9/core
Ensured plugin runners use caption as name if available
rodzic
a5a9008c8e
commit
c6b074e9be
|
@ -365,7 +365,7 @@ define(function(require, exports, module) {
|
||||||
data = util.safeParseJson(data, function() {});
|
data = util.safeParseJson(data, function() {});
|
||||||
if (!data) return;
|
if (!data) return;
|
||||||
|
|
||||||
services.run.addRunner(filename, data, plugin);
|
services.run.addRunner(data.caption || filename, data, plugin);
|
||||||
break;
|
break;
|
||||||
case "snippets":
|
case "snippets":
|
||||||
services["language.complete"].addSnippet(data, plugin);
|
services["language.complete"].addSnippet(data, plugin);
|
||||||
|
@ -541,4 +541,4 @@ define(function(require, exports, module) {
|
||||||
"plugin.debug": plugin
|
"plugin.debug": plugin
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Ładowanie…
Reference in New Issue