From 455d383d08e0df93f418b49f5823888ff6b70120 Mon Sep 17 00:00:00 2001 From: Mikayla Maki Date: Fri, 21 Apr 2023 21:42:23 -0700 Subject: [PATCH 1/3] Change copilot wording to be more explicit --- crates/copilot_button/src/copilot_button.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/copilot_button/src/copilot_button.rs b/crates/copilot_button/src/copilot_button.rs index da13ce4413..ed1536a098 100644 --- a/crates/copilot_button/src/copilot_button.rs +++ b/crates/copilot_button/src/copilot_button.rs @@ -272,7 +272,10 @@ impl CopilotButton { let mut menu_options = Vec::with_capacity(2); menu_options.push(ContextMenuItem::item("Sign In", InitiateSignIn)); - menu_options.push(ContextMenuItem::item("Hide Copilot", HideCopilot)); + menu_options.push(ContextMenuItem::item( + "Disable Copilot Integration", + HideCopilot, + )); self.popup_menu.update(cx, |menu, cx| { menu.show( From c7874cf169826e1af6c825376070c2741f9eb21e Mon Sep 17 00:00:00 2001 From: Mikayla Maki Date: Mon, 24 Apr 2023 09:03:54 -0700 Subject: [PATCH 2/3] Update copilot_button.rs --- crates/copilot_button/src/copilot_button.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/copilot_button/src/copilot_button.rs b/crates/copilot_button/src/copilot_button.rs index ed1536a098..1d2fc9117d 100644 --- a/crates/copilot_button/src/copilot_button.rs +++ b/crates/copilot_button/src/copilot_button.rs @@ -273,7 +273,7 @@ impl CopilotButton { menu_options.push(ContextMenuItem::item("Sign In", InitiateSignIn)); menu_options.push(ContextMenuItem::item( - "Disable Copilot Integration", + "Disable Copilot", HideCopilot, )); From c12e2ac3fb6e103ebbc32a6f72756a6ce091803e Mon Sep 17 00:00:00 2001 From: Mikayla Maki Date: Mon, 24 Apr 2023 09:25:04 -0700 Subject: [PATCH 3/3] fix formatting --- crates/copilot_button/src/copilot_button.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/crates/copilot_button/src/copilot_button.rs b/crates/copilot_button/src/copilot_button.rs index 1d2fc9117d..c8bfcc7550 100644 --- a/crates/copilot_button/src/copilot_button.rs +++ b/crates/copilot_button/src/copilot_button.rs @@ -272,10 +272,7 @@ impl CopilotButton { let mut menu_options = Vec::with_capacity(2); menu_options.push(ContextMenuItem::item("Sign In", InitiateSignIn)); - menu_options.push(ContextMenuItem::item( - "Disable Copilot", - HideCopilot, - )); + menu_options.push(ContextMenuItem::item("Disable Copilot", HideCopilot)); self.popup_menu.update(cx, |menu, cx| { menu.show(