Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
settings_ui: Fix misplaced comma in autoclose setting description (#40519)
David9984614f3d55
diff --git a/assets/settings/default.json b/assets/settings/default.jsonindex d4a23586d82..3fb8ea88b3f 100644--- a/assets/settings/default.json+++ b/assets/settings/default.json@@ -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,diff --git a/crates/settings/src/settings_content/language.rs b/crates/settings/src/settings_content/language.rsindex 5624147369a..a5dbd682d2c 100644--- a/crates/settings/src/settings_content/language.rs+++ b/crates/settings/src/settings_content/language.rs@@ -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: truepub 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: truepub use_auto_surround: Option<bool>,diff --git a/crates/settings_ui/src/page_data.rs b/crates/settings_ui/src/page_data.rsindex 26447445f99..6683f42daee 100644--- a/crates/settings_ui/src/page_data.rs+++ b/crates/settings_ui/src/page_data.rs@@ -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| {diff --git a/docs/src/configuring-zed.md b/docs/src/configuring-zed.mdindex 14c2f724f03..4fb65d14118 100644--- a/docs/src/configuring-zed.md+++ b/docs/src/configuring-zed.md@@ -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`