From c28c767b40291539e552b2f885b86bcc18b9fdde Mon Sep 17 00:00:00 2001 From: Danilo Leal <67129314+danilo-leal@users.noreply.github.com> Date: Thu, 6 Feb 2025 16:49:13 -0300 Subject: [PATCH] edit prediction: Wordsmith status bar menu docs aside (#24390) Refining writing in the status bar menu docs aside. Release Notes: - N/A --------- Co-authored-by: Nathan Sobo <1789+nathansobo@users.noreply.github.com> --- crates/inline_completion_button/Cargo.toml | 1 + .../src/inline_completion_button.rs | 9 +++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/crates/inline_completion_button/Cargo.toml b/crates/inline_completion_button/Cargo.toml index 973e7d3273..93d7a3e80e 100644 --- a/crates/inline_completion_button/Cargo.toml +++ b/crates/inline_completion_button/Cargo.toml @@ -20,6 +20,7 @@ editor.workspace = true feature_flags.workspace = true fs.workspace = true gpui.workspace = true +indoc.workspace = true inline_completion.workspace = true language.workspace = true paths.workspace = true diff --git a/crates/inline_completion_button/src/inline_completion_button.rs b/crates/inline_completion_button/src/inline_completion_button.rs index c6a616dc1a..19cb8b4843 100644 --- a/crates/inline_completion_button/src/inline_completion_button.rs +++ b/crates/inline_completion_button/src/inline_completion_button.rs @@ -11,6 +11,7 @@ use gpui::{ Corner, Entity, FocusHandle, Focusable, IntoElement, ParentElement, Render, Subscription, WeakEntity, }; +use indoc::indoc; use language::{ language_settings::{ self, all_language_settings, AllLanguageSettings, InlineCompletionProvider, @@ -429,7 +430,10 @@ impl InlineCompletionButton { ContextMenuEntry::new("Share Training Data") .toggleable(IconPosition::End, data_collection.is_enabled()) .documentation_aside(|_| { - Label::new("Zed automatically detects if your project is open-source. This setting is only applicable in such cases.").into_any_element() + Label::new(indoc!{" + Help us improve our open model by sharing data from open source repositories. \ + Zed must detect a license file in your repo for this setting to take effect.\ + "}).into_any_element() }) .handler(move |_, cx| { provider.toggle_data_collection(cx); @@ -453,7 +457,8 @@ impl InlineCompletionButton { menu = menu.item( ContextMenuEntry::new("Configure Excluded Files") .documentation_aside(|_| { - Label::new("This item takes you to the settings where you can specify files that will never be captured by any edit prediction model. List both specific file extensions and individual file names.").into_any_element() + Label::new(indoc!{" + Open your settings to add sensitive paths for which Zed will never predict edits."}).into_any_element() }) .handler(move |window, cx| { if let Some(workspace) = window.root().flatten() {