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 <joseph@zed.dev>
Co-Authored-By: Mikayla Maki <mikayla@zed.dev>
This commit is contained in:
Julia 2023-03-31 13:59:57 -04:00
parent 54582fd77f
commit 0199ffed5f

View file

@ -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 {