Revert "Merge pull request #2335 from zed-industries/dont-delete-json-server-after-downloading-it"
This reverts commit516e77906e, reversing changes made to54582fd77f.
This commit is contained in:
@@ -16,7 +16,7 @@ use std::{
|
|||||||
sync::Arc,
|
sync::Arc,
|
||||||
};
|
};
|
||||||
use theme::ThemeRegistry;
|
use theme::ThemeRegistry;
|
||||||
use util::http::HttpClient;
|
use util::{fs::remove_matching, http::HttpClient};
|
||||||
use util::{paths, ResultExt, StaffMode};
|
use util::{paths, ResultExt, StaffMode};
|
||||||
|
|
||||||
const SERVER_PATH: &'static str =
|
const SERVER_PATH: &'static str =
|
||||||
@@ -83,6 +83,8 @@ impl LspAdapter for JsonLspAdapter {
|
|||||||
&version_dir,
|
&version_dir,
|
||||||
)
|
)
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
|
remove_matching(&container_dir, |entry| entry != server_path).await;
|
||||||
}
|
}
|
||||||
|
|
||||||
Ok(LanguageServerBinary {
|
Ok(LanguageServerBinary {
|
||||||
|
|||||||
Reference in New Issue
Block a user