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.

Fix ESLint not starting on Windows (#54945)

Tristan Pheaseeced4eab77cf
diff --git a/crates/project/src/lsp_store.rs b/crates/project/src/lsp_store.rs
index 483f1252c4d..13d1cd90f47 100644
--- a/crates/project/src/lsp_store.rs
+++ b/crates/project/src/lsp_store.rs
@@ -14502,7 +14502,7 @@ impl LspAdapterDelegate for LocalLspAdapterDelegate {
.output()
.await?;
let global_node_modules =
- PathBuf::from(String::from_utf8_lossy(&output.stdout).to_string());
+ PathBuf::from(String::from_utf8_lossy(&output.stdout).trim().to_string());
if let Some(version) =
read_package_installed_version(global_node_modules.clone(), package_name).await?