Revert "Merge pull request #2335 from zed-industries/dont-delete-json-server-after-downloading-it"

This reverts commit 516e77906e, reversing
changes made to 54582fd77f.
This commit is contained in:
Julia 2023-03-31 15:31:50 -04:00
parent f616e8bac9
commit 0f4f3bfbde

View File

@ -16,7 +16,7 @@ use std::{
sync::Arc,
};
use theme::ThemeRegistry;
use util::http::HttpClient;
use util::{fs::remove_matching, http::HttpClient};
use util::{paths, ResultExt, StaffMode};
const SERVER_PATH: &'static str =
@ -83,6 +83,8 @@ impl LspAdapter for JsonLspAdapter {
&version_dir,
)
.await?;
remove_matching(&container_dir, |entry| entry != server_path).await;
}
Ok(LanguageServerBinary {