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.

python: Properly check for Pyright language server in local environment (#24873)

Finn Eversf2b7d8a9c9d6
diff --git a/crates/languages/src/python.rs b/crates/languages/src/python.rs
index 7c72a2be9ac..c28a528418f 100644
--- a/crates/languages/src/python.rs
+++ b/crates/languages/src/python.rs
@@ -83,7 +83,7 @@ impl LspAdapter for PythonLspAdapter {
_: Arc<dyn LanguageToolchainStore>,
_: &AsyncApp,
) -> Option<LanguageServerBinary> {
- if let Some(pyright_bin) = delegate.which(Self::SERVER_NAME.as_ref()).await {
+ if let Some(pyright_bin) = delegate.which("pyright-langserver".as_ref()).await {
let env = delegate.shell_env().await;
Some(LanguageServerBinary {
path: pyright_bin,