提交 b280a148 编写于 作者: R Ramya Achutha Rao

Show builtin themes in the end #44626

上级 dee28efc
......@@ -154,7 +154,16 @@ export class ExtensionsListView extends ViewsViewletPanel {
result = result
.filter(e => e.type === LocalExtensionType.System && (e.name.toLowerCase().indexOf(value) > -1 || e.displayName.toLowerCase().indexOf(value) > -1));
return new PagedModel(this.sortExtensions(result, options));
const themesExtensions = result.filter(e => {
return e.local.manifest
&& e.local.manifest.contributes
&& Array.isArray(e.local.manifest.contributes.themes)
&& e.local.manifest.contributes.themes.length;
});
const themesExtensionsIds = themesExtensions.map(e => e.id);
const others = result.filter(e => themesExtensionsIds.indexOf(e.id) === -1);
return new PagedModel([...this.sortExtensions(others, options), ...this.sortExtensions(themesExtensions, options)]);
}
if (!value || ExtensionsListView.isInstalledExtensionsQuery(value)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册