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>
This commit is contained in:
parent
e1bb9570df
commit
c28c767b40
2 changed files with 8 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue