From cf0f4428692a2fff5bafee5a30d92dbf8c03d5a6 Mon Sep 17 00:00:00 2001 From: Danilo Leal <67129314+danilo-leal@users.noreply.github.com> Date: Wed, 29 Oct 2025 17:58:22 -0300 Subject: [PATCH] settings_ui: Fix links for edit prediction items (#41492) Follow up to the bonus commit we added in https://github.com/zed-industries/zed/pull/41172/. Release Notes: - N/A --- crates/settings_ui/src/page_data.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/settings_ui/src/page_data.rs b/crates/settings_ui/src/page_data.rs index 915d34e1087823841e985bb141879bf781db64fb..8075e6396ae0011d00f7a9a65fc3732c08823787 100644 --- a/crates/settings_ui/src/page_data.rs +++ b/crates/settings_ui/src/page_data.rs @@ -5724,7 +5724,7 @@ pub(crate) fn settings_data(cx: &App) -> Vec { title: "Display Mode", 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.", field: Box::new(SettingField { - json_path: Some("edit_prediction_mode"), + json_path: Some("edit_prediction.display_mode"), pick: |settings_content| { settings_content.project.all_languages.edit_predictions.as_ref()?.mode.as_ref() }, @@ -5739,7 +5739,7 @@ pub(crate) fn settings_data(cx: &App) -> Vec { title: "In Text Threads", description: "Whether edit predictions are enabled when editing text threads in the agent panel.", field: Box::new(SettingField { - json_path: Some("edit_prediction_in_text_threads"), + json_path: Some("edit_prediction.in_text_threads"), pick: |settings_content| { settings_content.project.all_languages.edit_predictions.as_ref()?.enabled_in_text_threads.as_ref() }, @@ -5752,10 +5752,10 @@ pub(crate) fn settings_data(cx: &App) -> Vec { }), SettingsPageItem::SettingItem(SettingItem { title: "Copilot Provider", - description: "Set up GitHub Copilot as your edit prediction provider. You can toggle between it and Zed's default provider.", + description: "Use GitHub Copilot as your edit prediction provider.", field: Box::new( SettingField { - json_path: Some("languages.$(language).wrap_guides"), + json_path: Some("edit_prediction.copilot_provider"), pick: |settings_content| { settings_content.project.all_languages.edit_predictions.as_ref()?.copilot.as_ref() }, @@ -5770,10 +5770,10 @@ pub(crate) fn settings_data(cx: &App) -> Vec { }), SettingsPageItem::SettingItem(SettingItem { title: "Codestral Provider", - description: "Set up Mistral's Codestral as your edit prediction provider. You can toggle between it and Zed's default provider.", + description: "Use Mistral's Codestral as your edit prediction provider.", field: Box::new( SettingField { - json_path: Some("languages.$(language).wrap_guides"), + json_path: Some("edit_prediction.codestral_provider"), pick: |settings_content| { settings_content.project.all_languages.edit_predictions.as_ref()?.codestral.as_ref() },