Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

pylsp: Upgrade existing installation if possible (#28338)

Piotr Osiewicz86ef00054b3f
diff --git a/crates/languages/src/python.rs b/crates/languages/src/python.rs
index 9e8baf2470e..28c82668aff 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