提交 faf36c2f 编写于 作者: S Sandeep Somavarapu

Fix #99971

上级 fd951da3
...@@ -903,6 +903,7 @@ export class ExtensionEditor extends EditorPane { ...@@ -903,6 +903,7 @@ export class ExtensionEditor extends EditorPane {
this.renderLocalizations(content, manifest, layout), this.renderLocalizations(content, manifest, layout),
this.renderCustomEditors(content, manifest, layout), this.renderCustomEditors(content, manifest, layout),
this.renderAuthentication(content, manifest, layout), this.renderAuthentication(content, manifest, layout),
this.renderActivationEvents(content, manifest, layout),
]; ];
scrollableContent.scanDomNode(); scrollableContent.scanDomNode();
...@@ -1417,6 +1418,21 @@ export class ExtensionEditor extends EditorPane { ...@@ -1417,6 +1418,21 @@ export class ExtensionEditor extends EditorPane {
return true; return true;
} }
private renderActivationEvents(container: HTMLElement, manifest: IExtensionManifest, onDetailsToggle: Function): boolean {
const activationEvents = manifest.activationEvents || [];
if (!activationEvents.length) {
return false;
}
const details = $('details', { open: true, ontoggle: onDetailsToggle },
$('summary', { tabindex: '0' }, localize('activation events', "Activation Events ({0})", activationEvents.length)),
$('ul', undefined, ...activationEvents.map(activationEvent => $('li', undefined, activationEvent)))
);
append(container, details);
return true;
}
private resolveKeybinding(rawKeyBinding: IKeyBinding): ResolvedKeybinding | null { private resolveKeybinding(rawKeyBinding: IKeyBinding): ResolvedKeybinding | null {
let key: string | undefined; let key: string | undefined;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册