Skip to content

Commit cf0f442

Browse files
authored
settings_ui: Fix links for edit prediction items (#41492)
Follow up to the bonus commit we added in #41172. Release Notes: - N/A
1 parent de9c412 commit cf0f442

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

crates/settings_ui/src/page_data.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5724,7 +5724,7 @@ pub(crate) fn settings_data(cx: &App) -> Vec<SettingsPage> {
57245724
title: "Display Mode",
57255725
description: "When to show edit predictions previews in buffer. The eager mode displays them inline, while the subtle mode displays them only when holding a modifier key.",
57265726
field: Box::new(SettingField {
5727-
json_path: Some("edit_prediction_mode"),
5727+
json_path: Some("edit_prediction.display_mode"),
57285728
pick: |settings_content| {
57295729
settings_content.project.all_languages.edit_predictions.as_ref()?.mode.as_ref()
57305730
},
@@ -5739,7 +5739,7 @@ pub(crate) fn settings_data(cx: &App) -> Vec<SettingsPage> {
57395739
title: "In Text Threads",
57405740
description: "Whether edit predictions are enabled when editing text threads in the agent panel.",
57415741
field: Box::new(SettingField {
5742-
json_path: Some("edit_prediction_in_text_threads"),
5742+
json_path: Some("edit_prediction.in_text_threads"),
57435743
pick: |settings_content| {
57445744
settings_content.project.all_languages.edit_predictions.as_ref()?.enabled_in_text_threads.as_ref()
57455745
},
@@ -5752,10 +5752,10 @@ pub(crate) fn settings_data(cx: &App) -> Vec<SettingsPage> {
57525752
}),
57535753
SettingsPageItem::SettingItem(SettingItem {
57545754
title: "Copilot Provider",
5755-
description: "Set up GitHub Copilot as your edit prediction provider. You can toggle between it and Zed's default provider.",
5755+
description: "Use GitHub Copilot as your edit prediction provider.",
57565756
field: Box::new(
57575757
SettingField {
5758-
json_path: Some("languages.$(language).wrap_guides"),
5758+
json_path: Some("edit_prediction.copilot_provider"),
57595759
pick: |settings_content| {
57605760
settings_content.project.all_languages.edit_predictions.as_ref()?.copilot.as_ref()
57615761
},
@@ -5770,10 +5770,10 @@ pub(crate) fn settings_data(cx: &App) -> Vec<SettingsPage> {
57705770
}),
57715771
SettingsPageItem::SettingItem(SettingItem {
57725772
title: "Codestral Provider",
5773-
description: "Set up Mistral's Codestral as your edit prediction provider. You can toggle between it and Zed's default provider.",
5773+
description: "Use Mistral's Codestral as your edit prediction provider.",
57745774
field: Box::new(
57755775
SettingField {
5776-
json_path: Some("languages.$(language).wrap_guides"),
5776+
json_path: Some("edit_prediction.codestral_provider"),
57775777
pick: |settings_content| {
57785778
settings_content.project.all_languages.edit_predictions.as_ref()?.codestral.as_ref()
57795779
},

0 commit comments

Comments
 (0)