mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-07 21:37:49 +03:00
Clarify Copilot context menu
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
4a9989fe38
commit
54a78d7024
@ -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::<Settings>().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,
|
||||
));
|
||||
|
Loading…
Reference in New Issue
Block a user