-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
Align upload & download progress between desktop and web #111580
Comments
Web uses a custom solution which only works for that use case, I want a general approach for all file operations. Custom solution code pointer
General solution code pointer
|
To make the general solution as powerful as the custom one for upload we would need some infrastrucutre on the file service layer as you mentioned. |
I was testing one of the e2e scenarios and notice that in web, the status bar indicator is easily missed. I could not tell that it was still downloading until I opened the locally and saw it was still populating. |
@lramos15 how is this going? |
There has been no progress here, PRs are welcome |
We are missing this feature in VSCode |
Adding to the noise - would love this feature.. |
#83565 (comment) The web version is very nice |
I am attempting to address this issue and leaving some notes to ensure at least a little contribution, just in case I decide to give up at some point. 😥 |
The uploading operation starts in
vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.ts Lines 1284 to 1301 in 14d0156
Codes here choose different behaviors for different platforms. Thus, we should focus on For downloading, the platform switching logic is located in vscode/src/vs/workbench/contrib/files/browser/fileImportExport.ts Lines 633 to 642 in 14d0156
|
Take downloading as an example, there are several progress indicators:
|
The operations are actually performed in bulkEditService by delegation from https://github.com/microsoft/vscode/blob/main/src/vs/workbench/contrib/files/browser/explorerService.ts#L185-L204
|
+1 this would be a great feature |
BTW, the uploading operation is not cancelable for remote dev although there are Downloading instead doesn't show the updated: root cause |
As isidorn & bpasero say, we'd better
|
The copy op happens here: vscode/src/vs/platform/files/common/fileService.ts Lines 789 to 809 in 14d0156
For remote scenarios, the vscode/src/vs/platform/files/common/fileService.ts Lines 831 to 852 in 14d0156
One change of infra may do something with |
Testing #111250
I think the download progress for web is more detailed compared to what we have now for desktop and it would be great to align. Though I am not sure if this possibly requires some infrastructure on the file service layer.
Update from #146226: The same applies to upload progress which is much nicer in web.
We have a few places where we show progress for uploading, downloading and importing:
vscode/src/vs/workbench/contrib/files/browser/fileImportExport.ts
Line 89 in 32d40cf
vscode/src/vs/workbench/contrib/files/browser/fileImportExport.ts
Line 409 in 32d40cf
vscode/src/vs/workbench/contrib/files/browser/fileImportExport.ts
Line 590 in 32d40cf
In all three cases we can use the
IProgressStep
to update the message and overall progress counts.We may not get all the information we need such as knowing the overall size, but if we do we should make sure that the label for the progress is as accurate as possible.
This sounds like a fun area for a contribution where someone can geek out on providing the best progress info possible. As such, opening for help wanted.
The text was updated successfully, but these errors were encountered: