提交 634bf03c 编写于 作者: M Matt Bierner

Webview editors -> custom editors

上级 d6ab4311
......@@ -855,7 +855,7 @@ export class ExtensionEditor extends BaseEditor {
this.renderViewContainers(content, manifest, layout),
this.renderViews(content, manifest, layout),
this.renderLocalizations(content, manifest, layout),
this.renderWebviewEditors(content, manifest, layout),
this.renderCustomEditors(content, manifest, layout),
];
scrollableContent.scanDomNode();
......@@ -1055,19 +1055,19 @@ export class ExtensionEditor extends BaseEditor {
return true;
}
private renderWebviewEditors(container: HTMLElement, manifest: IExtensionManifest, onDetailsToggle: Function): boolean {
private renderCustomEditors(container: HTMLElement, manifest: IExtensionManifest, onDetailsToggle: Function): boolean {
const webviewEditors = (manifest.contributes && manifest.contributes.webviewEditors) || [];
if (!webviewEditors.length) {
return false;
}
const details = $('details', { open: true, ontoggle: onDetailsToggle },
$('summary', { tabindex: '0' }, localize('webviewEditors', "Webview Editors ({0})", webviewEditors.length)),
$('summary', { tabindex: '0' }, localize('customEditors', "Custom Editors ({0})", webviewEditors.length)),
$('table', undefined,
$('tr', undefined,
$('th', undefined, localize('webviewEditors view type', "View Type")),
$('th', undefined, localize('webviewEditors priority', "Priority")),
$('th', undefined, localize('webviewEditors filenamePattern', "Filename Pattern"))),
$('th', undefined, localize('customEditors view type', "View Type")),
$('th', undefined, localize('customEditors priority', "Priority")),
$('th', undefined, localize('customEditors filenamePattern', "Filename Pattern"))),
...webviewEditors.map(webviewEditor =>
$('tr', undefined,
$('td', undefined, webviewEditor.viewType),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册