Skip to content

Commit d89ee32

Browse files
authored
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](#48628)).
1 parent e4f2492 commit d89ee32

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

crates/extensions_ui/src/extensions_ui.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,10 @@ impl ExtensionsPage {
487487
matches!(status, ExtensionStatus::NotInstalled)
488488
}
489489
})
490+
.filter(|(_, extension)| match self.provides_filter {
491+
Some(provides) => extension.manifest.provides.contains(&provides),
492+
None => true,
493+
})
490494
.map(|(ix, _)| ix),
491495
);
492496
cx.notify();

0 commit comments

Comments
 (0)