-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support multiple files in working copy file service #98309
Comments
@jrieken I was not aware there is support for an array of resources, e.g. when I look at This needs:
Setting help wanted if someone wants to do this, shouldn't be too complicated. |
Hi @bpasero |
Yes, go for it 👍 |
@bpasero I see you are reviewing this. Feel free to assign me back if you need some help. |
@DanTup can you please verify your original issue is resolved with your test extension? |
When dragging multiple files in the explorer, the
onWillRenameFiles
event is fired multiple times concurrently with a single file per-call - even though the API supports an array:vscode/src/vs/workbench/api/common/extHostFileSystemEventService.ts
Line 185 in 926fc23
This means an extension will produce multiple edits for a single operation if there are multiple files moved - though it looks like VS Code merges them together:
vscode/src/vs/workbench/api/common/extHostFileSystemEventService.ts
Lines 219 to 228 in 926fc23
However, this fails if two of the edits modified the same file with "(file) has changed in the meantime".
Here's a gif showing individual file moves correctly updating the file on the right. However if I moved them both at the same time, only one edit is applied and the other one fails.
The code for that repro is available here:
https://github.com/DanTup/vscode-repro-will-rename-files (extension.ts).
The text was updated successfully, but these errors were encountered: