Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Enable `yaml-language-server` lookup in PATH (#22036)
Henry Chub2eceeb4f27c
diff --git a/crates/languages/src/yaml.rs b/crates/languages/src/yaml.rsindex 2f412d3102e..12878b8f936 100644--- a/crates/languages/src/yaml.rs+++ b/crates/languages/src/yaml.rs@@ -54,6 +54,22 @@ impl LspAdapter for YamlLspAdapter {) as Box<_>)}+ async fn check_if_user_installed(+ &self,+ delegate: &dyn LspAdapterDelegate,+ _: Arc<dyn LanguageToolchainStore>,+ _: &AsyncAppContext,+ ) -> Option<LanguageServerBinary> {+ let path = delegate.which(Self::SERVER_NAME.as_ref()).await?;+ let env = delegate.shell_env().await;++ Some(LanguageServerBinary {+ path,+ env: Some(env),+ arguments: vec!["--stdio".into()],+ })+ }+async fn fetch_server_binary(&self,latest_version: Box<dyn 'static + Send + Any>,