extensions_ui: Respect category filter for installed extensions when searching (#49183)
This PR updates the extensions UI to respect the category filter for already-installed extensions when searching for extensions. Closes #48628. Release Notes: - The extension search will now properly respect the category filter for extensions that are already installed ([#48628](https://github.com/zed-industries/zed/issues/48628)).
This commit is contained in:
1 parent
327f594f9c
commit
8c1ee9f2a3
1 file changed
+4
@@ -487,6 +487,10 @@ impl ExtensionsPage {
|
||||
matches!(status, ExtensionStatus::NotInstalled)
|
||||
}
|
||||
})
|
||||
.filter(|(_, extension)| match self.provides_filter {
|
||||
Some(provides) => extension.manifest.provides.contains(&provides),
|
||||
None => true,
|
||||
})
|
||||
.map(|(ix, _)| ix),
|
||||
);
|
||||
cx.notify();
|
||||
|
||||
Reference in new issue
Block a user