bring back ads edit (#22472)

This commit is contained in:
Alan Ren
2023-03-27 11:27:41 -07:00
committed by GitHub
parent 7377feeb22
commit 115062c0fc

View File

@@ -727,6 +727,12 @@ abstract class AbstractExtensionGalleryService implements IExtensionGalleryServi
let query = new Query()
.withPage(1, pageSize);
// {{SQL CARBON EDIT}} exclude extensions matching excludeFlags options
if (options.excludeFlags) {
query = query.withFilter(FilterType.ExcludeWithFlags, options.excludeFlags);
}
// {{SQL CARBON EDIT}}} - END
if (text) {
// Use category filter instead of "category:themes"
text = text.replace(/\bcategory:("([^"]*)"|([^"]\S*))(\s+|\b|$)/g, (_, quotedCategory, category) => {