From 86ef00054b3fde88f61ba8c45082cd9dcf349ca1 Mon Sep 17 00:00:00 2001 From: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com> Date: Tue, 8 Apr 2025 20:01:09 +0200 Subject: [PATCH] pylsp: Upgrade existing installation if possible (#28338) Closes #ISSUE Release Notes: - Zed-managed pylsp installations will now correctly upgrade themselves --- crates/languages/src/python.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/languages/src/python.rs b/crates/languages/src/python.rs index 9e8baf2470ea9bcaa69e8409f0f2f92fea5c3763..28c82668aff02f309ddf2b77ae324602145b10c0 100644 --- a/crates/languages/src/python.rs +++ b/crates/languages/src/python.rs @@ -991,6 +991,7 @@ impl LspAdapter for PyLspAdapter { util::command::new_smol_command(pip_path.as_path()) .arg("install") .arg("python-lsp-server") + .arg("-U") .output() .await? .status @@ -1001,6 +1002,7 @@ impl LspAdapter for PyLspAdapter { util::command::new_smol_command(pip_path.as_path()) .arg("install") .arg("python-lsp-server[all]") + .arg("-U") .output() .await? .status @@ -1011,6 +1013,7 @@ impl LspAdapter for PyLspAdapter { util::command::new_smol_command(pip_path) .arg("install") .arg("pylsp-mypy") + .arg("-U") .output() .await? .status