Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

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

Lukas Wirtha88c533ffc45
diff --git a/crates/languages/src/rust.rs b/crates/languages/src/rust.rs
index 1d489052e64..e79f0c9e8eb 100644
--- a/crates/languages/src/rust.rs
+++ b/crates/languages/src/rust.rs
@@ -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,