Move command palette filter into collections crate
Filter out copilot commands from command palette when not active
This commit is contained in:
parent
aea8475d30
commit
0b0c7e4ce9
7 changed files with 76 additions and 51 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue