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.

Merge branch 'main' into fix-broken-lsp-installations

Julia48bed2ee0334
diff --cc crates/lsp/src/lsp.rs
index ffca2f24abf,5074989277f..1293408324f
--- a/crates/lsp/src/lsp.rs
+++ b/crates/lsp/src/lsp.rs
@@@ -34,15 -33,9 +34,15 @@@ const JSON_RPC_VERSION: &str = "2.0"
const CONTENT_LEN_HEADER: &str = "Content-Length: ";
type NotificationHandler = Box<dyn Send + FnMut(Option<usize>, &str, AsyncAppContext)>;
- type ResponseHandler = Box<dyn Send + FnOnce(Result<&str, Error>)>;
+ type ResponseHandler = Box<dyn Send + FnOnce(Result<String, Error>)>;
type IoHandler = Box<dyn Send + FnMut(bool, &str)>;
+#[derive(Debug, Clone, Deserialize)]
+pub struct LanguageServerBinary {
+ pub path: PathBuf,
+ pub arguments: Vec<OsString>,
+}
+
pub struct LanguageServer {
server_id: LanguageServerId,
next_id: AtomicUsize,
diff --cc crates/project/src/project.rs
index 561235d35fc,91c92edb6ad..270ee32babc
--- a/crates/project/src/project.rs
+++ b/crates/project/src/project.rs
@@@ -64,8 -64,7 +64,8 @@@ use std::
mem,
num::NonZeroU32,
ops::Range,
- path::{Component, Path, PathBuf},
+ path::{self, Component, Path, PathBuf},
+ process::Stdio,
rc::Rc,
str,
sync::{