#RemoveThe2

This commit is contained in:
Mikayla 2023-11-16 18:04:35 -08:00
parent 49d3e1cc4b
commit 432572c592
No known key found for this signature in database
2 changed files with 12 additions and 7 deletions

View file

@ -47,7 +47,7 @@ impl CommandPalette {
.available_actions()
.into_iter()
.filter_map(|action| {
let name = action.name();
let name = gpui::remove_the_2(action.name());
let namespace = name.split("::").next().unwrap_or("malformed action name");
if filter.is_some_and(|f| f.filtered_namespaces.contains(namespace)) {
return None;