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.

Only apply host-side executable fix to binaries downloaded by the extension (#10318)

Marshall Bowers8205c52d2bc2
diff --git a/crates/extension/src/extension_lsp_adapter.rs b/crates/extension/src/extension_lsp_adapter.rs
index a89a77a15f0..7c5a7b669b2 100644
--- a/crates/extension/src/extension_lsp_adapter.rs
+++ b/crates/extension/src/extension_lsp_adapter.rs
@@ -79,7 +79,9 @@ impl LspAdapter for ExtensionLspAdapter {
// We can remove once the following extension versions no longer see any use:
- if ["toml", "zig"].contains(&self.extension.manifest.id.as_ref()) {
+ if ["toml", "zig"].contains(&self.extension.manifest.id.as_ref())
+ && path.starts_with(&self.host.work_dir)
+ {
#[cfg(not(windows))]
{
use std::fs::{self, Permissions};