Move command palette filter into collections crate

Filter out copilot commands from command palette when not active
This commit is contained in:
Mikayla Maki 2023-03-28 20:13:17 -07:00
parent aea8475d30
commit 0b0c7e4ce9
7 changed files with 76 additions and 51 deletions

View file

@ -1,4 +1,4 @@
use collections::HashSet;
use collections::CommandPaletteFilter;
use fuzzy::{StringMatch, StringMatchCandidate};
use gpui::{
actions,
@ -12,11 +12,6 @@ use settings::Settings;
use std::cmp;
use workspace::Workspace;
#[derive(Default)]
pub struct CommandPaletteFilter {
pub filtered_namespaces: HashSet<&'static str>,
}
pub fn init(cx: &mut MutableAppContext) {
cx.add_action(CommandPalette::toggle);
Picker::<CommandPalette>::init(cx);