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 GitHub
parent 702a95ffb2
commit a88c533ffc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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,