From 0199ffed5f8b6723685fe7a870301d58ef2ab287 Mon Sep 17 00:00:00 2001 From: Julia Date: Fri, 31 Mar 2023 13:59:57 -0400 Subject: [PATCH] Don't delete JSON language server directly after downloading it This was accidentally added during the messy NodeRuntime/Copilot rebase Co-Authored-By: Joseph Lyons Co-Authored-By: Mikayla Maki --- crates/zed/src/languages/json.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/crates/zed/src/languages/json.rs b/crates/zed/src/languages/json.rs index 7919f7510d..fddab54956 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 {