mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-02 06:14:15 +01:00
add sort for ActivationEvents
This commit is contained in:
@@ -1707,7 +1707,10 @@ export class ExtensionEditor extends EditorPane {
|
||||
|
||||
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, $('code', undefined, activationEvent))))
|
||||
$('ul', undefined,
|
||||
...activationEvents
|
||||
.sort((a, b) => a.localeCompare(b))
|
||||
.map(activationEvent => $('li', undefined, $('code', undefined, activationEvent))))
|
||||
);
|
||||
|
||||
append(container, details);
|
||||
|
||||
Reference in New Issue
Block a user