Skip to content

Feature: Add Skip and Skip All buttons to File In Use dialog#18540

Open
codenano077 wants to merge 8 commits into
files-community:mainfrom
codenano077:main
Open

Feature: Add Skip and Skip All buttons to File In Use dialog#18540
codenano077 wants to merge 8 commits into
files-community:mainfrom
codenano077:main

Conversation

@codenano077

Copy link
Copy Markdown

Resolved / Related Issues

To prevent extra work, all changes to the Files codebase must link to an approved issue marked as Ready to build. Please insert the issue number following the hashtag with the issue number that this Pull Request resolves.

Steps used to test these changes

Stability is a top priority for Files and all changes are required to go through testing before being merged into the repo. Please include a list of steps that you used to test this PR.

  1. Opened Files Dev app
  2. Locked a file using PowerShell: $file = [System.IO.File]::Open("D:\testlock.txt", "OpenOrCreate", "ReadWrite", "None")
  3. Navigated to the locked file in Files Dev
  4. Attempted to delete the locked file
  5. Confirmed that Retry, Skip, and Skip All buttons appear correctly in the File In Use dialog
  6. Clicked Skip to verify it skips the current file
  7. Clicked Skip All to verify it skips all locked files

@yair100

yair100 commented Jun 3, 2026

Copy link
Copy Markdown
Member

Can you please share screenshot? Also, can you confirm if the skip option only shows when deleting multiple items?

@codenano077

Copy link
Copy Markdown
Author

Here's a screenshot of the dialog with the new buttons:
Screenshot 2026-06-04 152323
Screenshot 2026-06-04 152337

Regarding your question — the Skip and Skip All buttons currently show for both single and multiple file deletions. However, I think it makes more sense to only show Skip and Skip All when deleting multiple files, since skipping a single locked file is essentially the same as cancelling. Would you like me to update the behavior so Skip only appears when multiple files are being deleted?

@yair100

yair100 commented Jun 4, 2026

Copy link
Copy Markdown
Member

Would you like me to update the behavior so Skip only appears when multiple files are being deleted?

Yes, that would be great.

@yair100 yair100 added the changes requested Changes are needed for this pull request label Jun 7, 2026
@yair100 yair100 added ready for review Pull requests that are ready for review and removed changes requested Changes are needed for this pull request labels Jun 10, 2026
@yair100 yair100 requested a review from Josh65-2201 June 10, 2026 18:57
yair100
yair100 previously approved these changes Jun 10, 2026

@Josh65-2201 Josh65-2201 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm not certain why there is Skip and Skip all since all files are attempted at the same time so both buttons do the same thing.

Permanently deletes file in use prompt also only has Try again or Cancel buttons like 4.1.3, shouldn't it have the same?

@codenano077

Copy link
Copy Markdown
Author

Thanks for the feedback!

Regarding Skip vs Skip All — you raise a valid point. Could you clarify the intended behavior? Should Skip dismiss the dialog for the current file only and show it again for the next locked file, while Skip All dismisses it for all locked files at once?

Regarding the permanent delete dialog — I can update that to be consistent with this change if that's the desired behavior.

@Josh65-2201

Josh65-2201 commented Jun 11, 2026

Copy link
Copy Markdown
Member

I think this was fixed while ago but the issue wasn't closed. All in use files are grouped together to show them and what's using it. Unless Yair wants to ungroup them so one file is shown at a time?

@yair100

yair100 commented Jun 11, 2026

Copy link
Copy Markdown
Member

I think this was fixed while ago but the issue wasn't closed. All in use files are grouped together to show them and what's using it. Unless Yair wants to ungroup them so one file is shown at a time?

@Josh65-2201 in the latest stable build, what happens with the non-conflicting files, do they finish transferring? I thought that we needed to add a skip button to continue with the non-conflicting items.

@Josh65-2201

Copy link
Copy Markdown
Member

None blocking ones are completed for me

@codenano077

Copy link
Copy Markdown
Author

I tested this as well — non-locked files complete automatically while the dialog shows for locked ones.
Given that all locked files are shown together in one dialog, I agree that Skip All doesn't add much value. I'd suggest simplifying to just a single Skip button that dismisses the dialog and skips all the locked files shown. This keeps it simple and consistent.
Should I update the PR to remove Skip All and keep only Skip?

@Josh65-2201

Copy link
Copy Markdown
Member

Sure, all that's need is changing the Cancel button text to Skip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready for review Pull requests that are ready for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: Add skip button when deleting multiple files that are in use by another application

3 participants