From 3e44e97177258114c1758e428e7a70f327bc5368 Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Mon, 15 Apr 2024 15:06:07 -0400 Subject: [PATCH] Install the latest compatible version of an extension when clicking "Install" (#10575) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR makes it so clicking "Install" will install the latest compatible version of an extension instead of disabling the button when the latest version is not compatible. The "Upgrade" button will still be disabled when the latest version is not compatible. We will also now display a tooltip to better indicate why the button is disabled: Screenshot 2024-04-15 at 2 41 26 PM Related to https://github.com/zed-industries/zed/issues/10509. Release Notes: - Changed the "Install" button for extensions to always install the latest compatible version instead of becoming disabled when the latest version of an extension is incompatible with the current Zed version. --- crates/extensions_ui/src/extensions_ui.rs | 24 +++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/crates/extensions_ui/src/extensions_ui.rs b/crates/extensions_ui/src/extensions_ui.rs index 314a7559d5..0720cc120d 100644 --- a/crates/extensions_ui/src/extensions_ui.rs +++ b/crates/extensions_ui/src/extensions_ui.rs @@ -591,13 +591,11 @@ impl ExtensionsPage { cx: &mut ViewContext, ) -> (Button, Option