terraform: Make downloaded language server binary executable (#15171)

This PR updates the Terraform extension to make the downloaded language
server binary executable.

Resolves #14502.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2024-07-25 08:08:38 -04:00 committed by GitHub
parent 6bff8ecb73
commit c7e2d5bd89
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -62,6 +62,8 @@ impl TerraformExtension {
zed::download_file(&download_url, &version_dir, zed::DownloadedFileType::Zip)
.map_err(|e| format!("failed to download file: {e}"))?;
zed::make_file_executable(&binary_path)?;
let entries =
fs::read_dir(".").map_err(|e| format!("failed to list working directory {e}"))?;
for entry in entries {