Skip to content

Commit 1a49951

Browse files
authored
Make the language server binary executable after download (#20)
Resolves #19 Draft because I'm unsure this repo is the correct place to fix the issue. Maybe it should be `zed::download_file`'s job to carry over file permissions when extracting a zip file. Note that `zed::make_file_executable` is a noop on non-unix platforms, so it shouldn't be an issue to call it here.
1 parent c750b54 commit 1a49951

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/kotlin.rs

+3
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ impl KotlinExtension {
5959
zed::DownloadedFileType::Zip,
6060
)
6161
.map_err(|e| format!("failed to download file error: {e}"))?;
62+
63+
zed::make_file_executable(&binary_path)
64+
.map_err(|e| format!("failed to make binary executable: {e}"))?;
6265
}
6366

6467
self.cached_binary_path = Some(binary_path.clone());

0 commit comments

Comments
 (0)