From 54a78d702492482f9dc9789890d087cf6f1475cb Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Wed, 19 Apr 2023 20:18:06 +0200 Subject: [PATCH] Clarify Copilot context menu Co-Authored-By: Nathan Sobo --- crates/copilot_button/src/copilot_button.rs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/crates/copilot_button/src/copilot_button.rs b/crates/copilot_button/src/copilot_button.rs index b326998616..8d535cc96b 100644 --- a/crates/copilot_button/src/copilot_button.rs +++ b/crates/copilot_button/src/copilot_button.rs @@ -254,12 +254,8 @@ impl CopilotButton { menu_options.push(ContextMenuItem::item( format!( - "{} Copilot for {}", - if language_enabled { - "Disable" - } else { - "Enable" - }, + "{} Suggestions for {}", + if language_enabled { "Hide" } else { "Show" }, language ), ToggleCopilotForLanguage { @@ -271,9 +267,9 @@ impl CopilotButton { let globally_enabled = cx.global::().show_copilot_suggestions(None); menu_options.push(ContextMenuItem::item( if globally_enabled { - "Disable Copilot Globally" + "Hide Suggestions for All Files" } else { - "Enable Copilot Globally" + "Show Suggestions for All Files" }, ToggleCopilotGlobally, ));