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,7 +1,7 @@
use crate::{request::PromptUserDeviceFlow, Copilot};
use gpui::{
elements::*, geometry::rect::RectF, impl_internal_actions, ClipboardItem, Element, Entity,
MutableAppContext, View, WindowKind, WindowOptions,
elements::*, geometry::rect::RectF, ClipboardItem, Element, Entity, MutableAppContext, View,
WindowKind, WindowOptions,
};
use settings::Settings;
@ -11,8 +11,6 @@ struct CopyUserCode;
#[derive(PartialEq, Eq, Debug, Clone)]
struct OpenGithub;
impl_internal_actions!(copilot_sign_in, [CopyUserCode, OpenGithub]);
const _COPILOT_SIGN_UP_URL: &'static str = "https://github.com/features/copilot";
enum SignInContents {