Ensured plugin runners use caption as name if available

pull/142/head
Rob Moran 2015-09-01 15:46:01 +01:00
rodzic a5a9008c8e
commit c6b074e9be
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -365,7 +365,7 @@ define(function(require, exports, module) {
data = util.safeParseJson(data, function() {});
if (!data) return;
services.run.addRunner(filename, data, plugin);
services.run.addRunner(data.caption || filename, data, plugin);
break;
case "snippets":
services["language.complete"].addSnippet(data, plugin);
@ -541,4 +541,4 @@ define(function(require, exports, module) {
"plugin.debug": plugin
});
}
});
});