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

Don't delete JSON language server directly after downloading it
This commit is contained in:
Julia 2023-03-31 14:08:09 -04:00 committed by GitHub
commit 516e77906e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 {