Capture language server stderr during startup/init and log if failure

zed2 electric boogaloo
This commit is contained in:
Julia 2023-10-26 13:50:24 +02:00
parent 06c22206af
commit 8a0fb668f7
8 changed files with 54 additions and 27 deletions

View file

@ -27,6 +27,7 @@ serde_derive.workspace = true
serde_json.workspace = true
anyhow.workspace = true
futures.workspace = true
parking_lot.workspace = true
[dev-dependencies]
language2 = { path = "../language2", features = ["test-support"] }

View file

@ -210,6 +210,7 @@ impl Prettier {
.spawn(async move { node.binary_path().await })
.await?;
let server = LanguageServer::new(
Arc::new(parking_lot::Mutex::new(None)),
server_id,
LanguageServerBinary {
path: node_path,