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.

Don't delete JSON language server directly after downloading it

Julia0199ffed5f8b
diff --git a/crates/zed/src/languages/json.rs b/crates/zed/src/languages/json.rs
index 7919f7510d4..fddab54956e 100644
--- a/crates/zed/src/languages/json.rs
+++ b/crates/zed/src/languages/json.rs
@@ -16,7 +16,7 @@ use std::{
sync::Arc,
};
use theme::ThemeRegistry;
-use util::{fs::remove_matching, http::HttpClient};
+use util::http::HttpClient;
use util::{paths, ResultExt, StaffMode};
const SERVER_PATH: &'static str =
@@ -83,8 +83,6 @@ impl LspAdapter for JsonLspAdapter {
&version_dir,
)
.await?;
-
- remove_matching(&container_dir, |entry| entry != server_path).await;
}
Ok(LanguageServerBinary {