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

Release Notes:

- N/A\
This commit is contained in:
Lukas Wirth 2025-08-11 14:24:53 +02:00 committed by Kirill Bulatov
parent 3328d4254d
commit cfd1ea4c27

View file

@ -237,7 +237,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,