Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Remove `copilot` and `show_copilot_suggestions` setting aliases (#13167)
Marshall Bowers71cc95d31541
diff --git a/assets/settings/default.json b/assets/settings/default.jsonindex 48ceeed2aa5..10624aa0c13 100644--- a/assets/settings/default.json+++ b/assets/settings/default.json@@ -145,9 +145,9 @@// Otherwise(when `true`), the closing characters are always skipped over and auto-removed// no matter how they were inserted."always_treat_brackets_as_autoclosed": false,- // Controls whether copilot provides suggestion immediately- // or waits for a `copilot::Toggle`- "show_copilot_suggestions": true,+ // Controls whether inline completions are shown immediately (true)+ // or manually by triggering `editor::ShowInlineCompletion` (false).+ "show_inline_completions": true,// Whether to show tabs and spaces in the editor.// This setting can take three values://@@ -516,9 +516,8 @@// "delay_ms": 600}},- "copilot": {- // The set of glob patterns for which copilot should be disabled- // in any matching file.+ "inline_completions": {+ // A list of globs representing files that inline completions should be disabled for."disabled_globs": [".env"]},// Settings specific to journalingdiff --git a/crates/language/src/language_settings.rs b/crates/language/src/language_settings.rsindex 3718e8550a8..1d5fd8713d8 100644--- a/crates/language/src/language_settings.rs+++ b/crates/language/src/language_settings.rs@@ -194,7 +194,7 @@ pub struct AllLanguageSettingsContent {#[serde(default)]pub features: Option<FeaturesContent>,/// The inline completion settings.- #[serde(default, alias = "copilot")]+ #[serde(default)]pub inline_completions: Option<InlineCompletionSettingsContent>,/// The default language settings.#[serde(flatten)]@@ -297,7 +297,7 @@ pub struct LanguageSettingsContent {/// or manually by triggering `editor::ShowInlineCompletion` (false).////// Default: true- #[serde(default, alias = "show_copilot_suggestions")]+ #[serde(default)]pub show_inline_completions: Option<bool>,/// Whether to show tabs and spaces in the editor.#[serde(default)]