Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
settings_content: Fix hover descriptions for newtype wrapper settings (#51705)
Kunall Banerjeeb7c64e56b1f9
diff --git a/crates/settings_content/src/settings_content.rs b/crates/settings_content/src/settings_content.rsindex ea505cd2dcb..861b6fee454 100644--- a/crates/settings_content/src/settings_content.rs+++ b/crates/settings_content/src/settings_content.rs@@ -1133,15 +1133,15 @@ pub struct WhichKeySettingsContent {pub delay_ms: Option<u64>,}+// An ExtendingVec in the settings can only accumulate new values.+//+// This is useful for things like private files where you only want+// to allow new values to be added.+//+// Consider using a HashMap<String, bool> instead of this type+// (like auto_install_extensions) so that user settings files can both add+// and remove values from the set.#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize, JsonSchema)]-/// An ExtendingVec in the settings can only accumulate new values.-///-/// This is useful for things like private files where you only want-/// to allow new values to be added.-///-/// Consider using a HashMap<String, bool> instead of this type-/// (like auto_install_extensions) so that user settings files can both add-/// and remove values from the set.pub struct ExtendingVec<T>(pub Vec<T>);impl<T> Into<Vec<T>> for ExtendingVec<T> {@@ -1161,10 +1161,10 @@ impl<T: Clone> merge_from::MergeFrom for ExtendingVec<T> {}}-/// A SaturatingBool in the settings can only ever be set to true,-/// later attempts to set it to false will be ignored.-///-/// Used by `disable_ai`.+// A SaturatingBool in the settings can only ever be set to true,+// later attempts to set it to false will be ignored.+//+// Used by `disable_ai`.#[derive(Debug, Default, Copy, Clone, PartialEq, Serialize, Deserialize, JsonSchema)]pub struct SaturatingBool(pub bool);