pylsp: Upgrade existing installation if possible (#28338)
Closes #ISSUE Release Notes: - Zed-managed pylsp installations will now correctly upgrade themselves
This commit is contained in:
@@ -991,6 +991,7 @@ impl LspAdapter for PyLspAdapter {
|
|||||||
util::command::new_smol_command(pip_path.as_path())
|
util::command::new_smol_command(pip_path.as_path())
|
||||||
.arg("install")
|
.arg("install")
|
||||||
.arg("python-lsp-server")
|
.arg("python-lsp-server")
|
||||||
|
.arg("-U")
|
||||||
.output()
|
.output()
|
||||||
.await?
|
.await?
|
||||||
.status
|
.status
|
||||||
@@ -1001,6 +1002,7 @@ impl LspAdapter for PyLspAdapter {
|
|||||||
util::command::new_smol_command(pip_path.as_path())
|
util::command::new_smol_command(pip_path.as_path())
|
||||||
.arg("install")
|
.arg("install")
|
||||||
.arg("python-lsp-server[all]")
|
.arg("python-lsp-server[all]")
|
||||||
|
.arg("-U")
|
||||||
.output()
|
.output()
|
||||||
.await?
|
.await?
|
||||||
.status
|
.status
|
||||||
@@ -1011,6 +1013,7 @@ impl LspAdapter for PyLspAdapter {
|
|||||||
util::command::new_smol_command(pip_path)
|
util::command::new_smol_command(pip_path)
|
||||||
.arg("install")
|
.arg("install")
|
||||||
.arg("pylsp-mypy")
|
.arg("pylsp-mypy")
|
||||||
|
.arg("-U")
|
||||||
.output()
|
.output()
|
||||||
.await?
|
.await?
|
||||||
.status
|
.status
|
||||||
|
|||||||
Reference in New Issue
Block a user