Clarify Copilot context menu
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
4a9989fe38
commit
54a78d7024
1 changed files with 4 additions and 8 deletions
|
@ -254,12 +254,8 @@ impl CopilotButton {
|
||||||
|
|
||||||
menu_options.push(ContextMenuItem::item(
|
menu_options.push(ContextMenuItem::item(
|
||||||
format!(
|
format!(
|
||||||
"{} Copilot for {}",
|
"{} Suggestions for {}",
|
||||||
if language_enabled {
|
if language_enabled { "Hide" } else { "Show" },
|
||||||
"Disable"
|
|
||||||
} else {
|
|
||||||
"Enable"
|
|
||||||
},
|
|
||||||
language
|
language
|
||||||
),
|
),
|
||||||
ToggleCopilotForLanguage {
|
ToggleCopilotForLanguage {
|
||||||
|
@ -271,9 +267,9 @@ impl CopilotButton {
|
||||||
let globally_enabled = cx.global::<Settings>().show_copilot_suggestions(None);
|
let globally_enabled = cx.global::<Settings>().show_copilot_suggestions(None);
|
||||||
menu_options.push(ContextMenuItem::item(
|
menu_options.push(ContextMenuItem::item(
|
||||||
if globally_enabled {
|
if globally_enabled {
|
||||||
"Disable Copilot Globally"
|
"Hide Suggestions for All Files"
|
||||||
} else {
|
} else {
|
||||||
"Enable Copilot Globally"
|
"Show Suggestions for All Files"
|
||||||
},
|
},
|
||||||
ToggleCopilotGlobally,
|
ToggleCopilotGlobally,
|
||||||
));
|
));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue