Skip to content

project: Fix empty files not downloading from a remote project#51571

Merged
Veykril merged 1 commit intozed-industries:mainfrom
AmaanBilwar:fix/download-empty-files-for-remote-project
Mar 17, 2026
Merged

project: Fix empty files not downloading from a remote project#51571
Veykril merged 1 commit intozed-industries:mainfrom
AmaanBilwar:fix/download-empty-files-for-remote-project

Conversation

@AmaanBilwar
Copy link
Copy Markdown
Contributor

@AmaanBilwar AmaanBilwar commented Mar 14, 2026

  • check content_size==0
  • entry is removed from downloading_files
  • empty file is writte via smol::fs::write(..., &[])

this means the receiver handles the empty files completely as soon as the State message arrives, without ever needing a Chunk that will never come

Closes #51551

Before you mark this PR as ready for review, make sure that you have:

  • Added a solid test coverage and/or screenshots from doing manual testing
  • Done a self-review taking into account security and performance aspects
  • No UI CHANGES

Release Notes:

  • Fixed empty files not downloading from a remote project

- entry is removed from `downloading_files`
- empty filw is writte via `smol::fs::write(..., &[])`

this means the receiver handlesthe empty files completely as soon as the
Stae message arrieves, without ever needing a Chunk that will never come
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Mar 14, 2026
@zelenenka zelenenka added the guild Pull requests by someone in Zed Guild. NOTE: the label application is automated via github actions label Mar 16, 2026
Copy link
Copy Markdown
Member

@Veykril Veykril left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Veykril Veykril enabled auto-merge (squash) March 17, 2026 08:38
@Veykril Veykril self-assigned this Mar 17, 2026
@zed-industries-bot
Copy link
Copy Markdown
Contributor

Warnings
⚠️

This PR is missing release notes.

Please add a "Release Notes" section that describes the change:

Release Notes:

- Added/Fixed/Improved ...

If your change is not user-facing, you can use "N/A" for the entry:

Release Notes:

- N/A

Generated by 🚫 dangerJS against c621bf5

@Veykril Veykril merged commit f1e7f39 into zed-industries:main Mar 17, 2026
40 checks passed
@esthertrapadoux esthertrapadoux moved this to Shipped by the Guild in Zed Guild - The Board Mar 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement guild Pull requests by someone in Zed Guild. NOTE: the label application is automated via github actions

Projects

Status: Shipped by the Guild

Development

Successfully merging this pull request may close these issues.

Cannot download empty files

5 participants