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
991991 util::command::new_smol_command(pip_path.as_path())
992992 .arg("install")
993993 .arg("python-lsp-server")
994+ .arg("-U")
994995 .output()
995996 .await?
996997 .status
@@ -1001,6 +1002,7 @@ impl LspAdapter for PyLspAdapter { · 4 unmodified lines
10011002 util::command::new_smol_command(pip_path.as_path())
10021003 .arg("install")
10031004 .arg("python-lsp-server[all]")
1005+ .arg("-U")
10041006 .output()
10051007 .await?
10061008 .status
@@ -1011,6 +1013,7 @@ impl LspAdapter for PyLspAdapter { · 4 unmodified lines
10111013 util::command::new_smol_command(pip_path)
10121014 .arg("install")
10131015 .arg("pylsp-mypy")
1016+ .arg("-U")
10141017 .output()
10151018 .await?
10161019 .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