Skip to content

extensions_ui: Apply category filter to dev extensions#48954

Merged
maxdeviant merged 3 commits intozed-industries:mainfrom
chenwuji2000-cyber:fix/extension-search-category-filter
Feb 16, 2026
Merged

extensions_ui: Apply category filter to dev extensions#48954
maxdeviant merged 3 commits intozed-industries:mainfrom
chenwuji2000-cyber:fix/extension-search-category-filter

Conversation

@chenwuji2000-cyber
Copy link
Contributor

@chenwuji2000-cyber chenwuji2000-cyber commented Feb 11, 2026

Following up on #49183 which fixed the category filter for remote extensions.

This PR applies the same category filter logic to dev extensions. Previously, dev extensions were always shown regardless of the selected category filter (e.g., "Themes", "Languages").

Changes:

  • Add filtered_dev_extension_indices to track which dev extensions match the active provides_filter
  • Add dev_extension_matches_provides() helper to map ExtensionManifest fields to ExtensionProvides variants
  • Update render_extensions() and list count to use filtered dev extension indices

Release Notes:

  • Fixed extension category filter not applying to dev extensions in the extensions panel.

@cla-bot
Copy link

cla-bot bot commented Feb 11, 2026

We require contributors to sign our Contributor License Agreement, and we don't have @invalid-email-address on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@zed-community-bot zed-community-bot bot added the first contribution the author's first pull request to Zed. NOTE: the label application is automated via github actions label Feb 11, 2026
@chenwuji2000-cyber
Copy link
Contributor Author

@cla-bot check

@cla-bot
Copy link

cla-bot bot commented Feb 11, 2026

We require contributors to sign our Contributor License Agreement, and we don't have @invalid-email-address on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@cla-bot
Copy link

cla-bot bot commented Feb 11, 2026

The cla-bot has been summoned, and re-checked this pull request!

@chenwuji2000-cyber chenwuji2000-cyber force-pushed the fix/extension-search-category-filter branch from 41da3ad to 4f2d170 Compare February 11, 2026 17:05
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Feb 11, 2026
@chenwuji2000-cyber
Copy link
Contributor Author

@esthertrapadoux Hi, I see your message on discord welcome channel and some github issues. So, I guess you might can help this situation. This PR shows need maintainer to approve.

I've tested that this PR fixed the problem.

a97cb51ba019e7c334ff49a08dd95047 f51f9347613589093b1133b4c6762a2b 8fe5e161374366cf09e7ed1be76393e8

@maxdeviant
Copy link
Member

Thank you for the PR!

The fix for the search not respecting the category filter for installed extensions has been pulled out into #49183.

However, I think the changes made for also applying it to dev extensions make sense, so could we update this PR to be solely about that?

Dev extensions were not filtered by the category selector (e.g., "Themes",
"Languages"). Add `filtered_dev_extension_indices` to track which dev
extensions match the active `provides_filter`, and use it in rendering
and list count.

Co-Authored-By: Claude <noreply@anthropic.com>
@chenwuji2000-cyber chenwuji2000-cyber force-pushed the fix/extension-search-category-filter branch from 4c0cd0a to 61d5ce9 Compare February 14, 2026 23:35
@chenwuji2000-cyber chenwuji2000-cyber changed the title Fix extension search not respecting category filter extensions_ui: Apply category filter to dev extensions Feb 14, 2026
@chenwuji2000-cyber
Copy link
Contributor Author

Thank you for the PR!

The fix for the search not respecting the category filter for installed extensions has been pulled out into #49183.

However, I think the changes made for also applying it to dev extensions make sense, so could we update this PR to be solely about that?

Sure~ Changes have made.

Copy link
Contributor Author

@chenwuji2000-cyber chenwuji2000-cyber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

learned from it!

Copy link
Member

@maxdeviant maxdeviant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@maxdeviant maxdeviant merged commit f3c6dcf into zed-industries:main Feb 16, 2026
27 checks passed
rtfeldman pushed a commit that referenced this pull request Feb 17, 2026
Following up on #49183 which fixed the category filter for remote
extensions.

This PR applies the same category filter logic to **dev extensions**.
Previously, dev extensions were always shown regardless of the selected
category filter (e.g., "Themes", "Languages").

Changes:
- Add `filtered_dev_extension_indices` to track which dev extensions
match the active `provides_filter`
- Add `dev_extension_matches_provides()` helper to map
`ExtensionManifest` fields to `ExtensionProvides` variants
- Update `render_extensions()` and list count to use filtered dev
extension indices

Release Notes:

- Fixed extension category filter not applying to dev extensions in the
extensions panel.

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Marshall Bowers <git@maxdeviant.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement first contribution the author's first pull request to Zed. NOTE: the label application is automated via github actions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments