settings_ui: Fix misplaced comma in autoclose setting description (#40519)

Release Notes:

- Fixed misplaced comma in the autoclose description from:
"when you type (, Zed will ...)"
to 
"when you type, (Zed will ...)"

---------

Co-authored-by: Danilo Leal <daniloleal09@gmail.com>
This commit is contained in:
David
2025-10-17 19:45:44 -03:00
committed by GitHub
co-authored by Danilo Leal
parent 287314f415
commit 9984614f3d
4 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -311,11 +311,11 @@
"use_on_type_format": true,
// Whether to automatically add matching closing characters when typing
// opening parenthesis, bracket, brace, single or double quote characters.
// For example, when you type (, Zed will add a closing ) at the correct position.
// For example, when you type '(', Zed will add a closing ) at the correct position.
"use_autoclose": true,
// Whether to automatically surround selected text when typing opening parenthesis,
// bracket, brace, single or double quote characters.
// For example, when you select text and type (, Zed will surround the text with ().
// For example, when you select text and type '(', Zed will surround the text with ().
"use_auto_surround": true,
// Whether indentation should be adjusted based on the context whilst typing.
"auto_indent": true,
@@ -296,12 +296,12 @@ pub struct LanguageSettingsContent {
/// Inlay hint related settings.
pub inlay_hints: Option<InlayHintSettingsContent>,
/// Whether to automatically type closing characters for you. For example,
/// when you type (, Zed will automatically add a closing ) at the correct position.
/// when you type '(', Zed will automatically add a closing ')' at the correct position.
///
/// Default: true
pub use_autoclose: Option<bool>,
/// Whether to automatically surround text with characters for you. For example,
/// when you select text and type (, Zed will automatically surround text with ().
/// when you select text and type '(', Zed will automatically surround text with ().
///
/// Default: true
pub use_auto_surround: Option<bool>,
+2 -2
View File
@@ -5430,7 +5430,7 @@ fn language_settings_data() -> Vec<SettingsPageItem> {
SettingsPageItem::SectionHeader("Autoclose"),
SettingsPageItem::SettingItem(SettingItem {
title: "Use Autoclose",
description: "Whether to automatically type closing characters for you. For example, when you type (, Zed will automatically add a closing ) at the correct position",
description: "Whether to automatically type closing characters for you. For example, when you type '(', Zed will automatically add a closing ')' at the correct position",
field: Box::new(SettingField {
pick: |settings_content| {
language_settings_field(settings_content, |language| {
@@ -5448,7 +5448,7 @@ fn language_settings_data() -> Vec<SettingsPageItem> {
}),
SettingsPageItem::SettingItem(SettingItem {
title: "Use Auto Surround",
description: "Whether to automatically surround text with characters for you. For example, when you select text and type (, Zed will automatically surround text with ()",
description: "Whether to automatically surround text with characters for you. For example, when you select text and type '(', Zed will automatically surround text with ()",
field: Box::new(SettingField {
pick: |settings_content| {
language_settings_field(settings_content, |language| {
+1 -1
View File
@@ -3326,7 +3326,7 @@ Positive integer values
## Use Auto Surround
- Description: Whether to automatically surround selected text when typing opening parenthesis, bracket, brace, single or double quote characters. For example, when you select text and type (, Zed will surround the text with ().
- Description: Whether to automatically surround selected text when typing opening parenthesis, bracket, brace, single or double quote characters. For example, when you select text and type '(', Zed will surround the text with ().
- Setting: `use_auto_surround`
- Default: `true`