language: Fix rust-analyzer removing itself on download (#35971)

Release Notes:

- N/A\
This commit is contained in:
Lukas Wirth
2025-08-11 12:24:53 +00:00
committed by GitHub
parent 702a95ffb2
commit a88c533ffc
+1 -1
View File
@@ -238,7 +238,7 @@ impl LspAdapter for RustLspAdapter {
)
.await?;
make_file_executable(&server_path).await?;
remove_matching(&container_dir, |path| server_path == path).await;
remove_matching(&container_dir, |path| server_path != path).await;
GithubBinaryMetadata::write_to_file(
&GithubBinaryMetadata {
metadata_version: 1,