History

pylsp: Upgrade existing installation if possible (#28338)

Closes #ISSUE Release Notes: - Zed-managed pylsp installations will now correctly upgrade themselves

Piotr Osiewicz committed 1 year ago

Commit 86ef0001 parent 9e8afa81 file · +3 −0Browse files

Unified · Split

crates/languages/src/python.rs+3−0
@@ -991,6 +991,7 @@ impl LspAdapter for PyLspAdapter { · 990 unmodified lines
991 util::command::new_smol_command(pip_path.as_path())991 util::command::new_smol_command(pip_path.as_path())
992 .arg("install")992 .arg("install")
993 .arg("python-lsp-server")993 .arg("python-lsp-server")
994 .arg("-U")
994 .output()995 .output()
995 .await?996 .await?
996 .status997 .status
@@ -1001,6 +1002,7 @@ impl LspAdapter for PyLspAdapter { · 4 unmodified lines
1001 util::command::new_smol_command(pip_path.as_path())1002 util::command::new_smol_command(pip_path.as_path())
1002 .arg("install")1003 .arg("install")
1003 .arg("python-lsp-server[all]")1004 .arg("python-lsp-server[all]")
1005 .arg("-U")
1004 .output()1006 .output()
1005 .await?1007 .await?
1006 .status1008 .status
@@ -1011,6 +1013,7 @@ impl LspAdapter for PyLspAdapter { · 4 unmodified lines
1011 util::command::new_smol_command(pip_path)1013 util::command::new_smol_command(pip_path)
1012 .arg("install")1014 .arg("install")
1013 .arg("pylsp-mypy")1015 .arg("pylsp-mypy")
1016 .arg("-U")
1014 .output()1017 .output()
1015 .await?1018 .await?
1016 .status1019 .status

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t