Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Use same arguments for LSP binary in `haskell.rs`
Pseudomatafaf77985776b
diff --git a/crates/zed/src/languages/haskell.rs b/crates/zed/src/languages/haskell.rsindex 56699f16180..832907e265c 100644--- a/crates/zed/src/languages/haskell.rs+++ b/crates/zed/src/languages/haskell.rs@@ -1,4 +1,5 @@use std::env::consts::ARCH;+use std::ffi::OsString;use std::{any::Any, path::PathBuf};use anyhow::{anyhow, Context, Result};@@ -14,6 +15,10 @@ use util::async_maybe;use util::github::latest_github_release;use util::{github::GitHubLspBinaryVersion, ResultExt};+fn server_binary_arguments() -> Vec<OsString> {+ vec!["--lsp".into()]+}+pub struct HaskellLspAdapter;#[async_trait]@@ -80,7 +85,7 @@ impl LspAdapter for HaskellLspAdapter {.await?;Ok(LanguageServerBinary {path: binary_path,- arguments: vec!["--lsp".into()],+ arguments: server_binary_arguments(),})}@@ -124,7 +129,7 @@ async fn get_cached_server_binary(container_dir: PathBuf) -> Option<LanguageServif let Some(path) = last_binary_path {Ok(LanguageServerBinary {path,- arguments: Vec::new(),+ arguments: server_binary_arguments(),})} else {Err(anyhow!("no cached binary"))