From 07727f939e3e44e56a01481d7aad238703bd6715 Mon Sep 17 00:00:00 2001 From: Junseong Park <39112954+jsparkdev@users.noreply.github.com> Date: Mon, 24 Mar 2025 20:05:06 +0900 Subject: [PATCH] Update docs for some settings (#27293) - update tooltips of `auto_install_extensions` , `active_pane_modifiers` - update docs of `auto_install_extensions`, `active_pane_modifiers`, `buffer_line_height` Release Notes: - N/A --------- Co-authored-by: Kirill Bulatov --- .../extension_host/src/extension_settings.rs | 2 ++ docs/src/configuring-zed.md | 26 ++++++++++++++++--- 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/crates/extension_host/src/extension_settings.rs b/crates/extension_host/src/extension_settings.rs index 86e6caa5be..3689624019 100644 --- a/crates/extension_host/src/extension_settings.rs +++ b/crates/extension_host/src/extension_settings.rs @@ -12,6 +12,8 @@ pub struct ExtensionSettings { /// /// This is used to make functionality provided by extensions (e.g., language support) /// available out-of-the-box. + /// + /// Default: { "html": true } #[serde(default)] pub auto_install_extensions: HashMap, bool>, #[serde(default)] diff --git a/docs/src/configuring-zed.md b/docs/src/configuring-zed.md index 5d4f3863f3..23f2826358 100644 --- a/docs/src/configuring-zed.md +++ b/docs/src/configuring-zed.md @@ -31,7 +31,19 @@ Extensions that provide language servers may also provide default settings for t ## Active Pane Modifiers -Styling settings applied to the active pane. +- Description: Styling settings applied to the active pane. +- Setting: `active_pane_modifiers` +- Default: + +```json +{ + "active_pane_modifiers": { + "magnification": 1.0, + "border_size": 0.0, + "inactive_opacity": 1.0 + } +} +``` ### Magnification @@ -39,12 +51,20 @@ Styling settings applied to the active pane. - Setting: `magnification` - Default: `1.0` +**Options** + +`float` values + ### Border size - Description: Size of the border surrounding the active pane. When set to 0, the active pane doesn't have any border. The border is drawn inset. - Setting: `border_size` - Default: `0.0` +**Options** + +Non-negative `float` values + ### Inactive Opacity - Description: Opacity of inactive panels. When set to 1.0, the inactive panes have the same opacity as the active one. If set to 0, the inactive panes content will not be visible at all. Values are clamped to the [0.0, 1.0] range. @@ -59,7 +79,7 @@ Styling settings applied to the active pane. - Description: Define extensions to be autoinstalled or never be installed. - Setting: `auto_install_extension` -- Default: `{"html": true}` +- Default: `{ "html": true }` **Options** @@ -327,7 +347,7 @@ For example, to use `Nerd Font` as a fallback, add the following to your setting **Options** -`"standard"`, `"comfortable"` or `{"custom": float}` (`1` is very compact, `2` very loose) +`"standard"`, `"comfortable"` or `{ "custom": float }` (`1` is compact, `2` is loose) ## Confirm Quit