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,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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue