-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Add 'Upload Files...' menu entries #4717
Conversation
40bbfc7
to
55060ce
Compare
@@ -57,29 +76,20 @@ export class FileDownloadCommandContribution implements CommandContribution { | |||
return this.isDownloadEnabled(uris); | |||
} | |||
|
|||
protected getUris(uri: Object | undefined): URI[] { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kittaakos i've removed it, seems to be just left overs which were never used
@jankeromnes @jgbradley1 Could you try it out? |
@vzhukovskii There was a bug in the navigator and plugin tree views that the global selection was not cleaned properly when they are disposed. I've introduced |
5c826ee
to
37d07db
Compare
@akosyakov thanks! Will try to check it asap. |
Looks like it doesn't break existed logic on plugin side. |
Nice. I like it! One minor UI issue. If a user has a directory open (i.e. by clicking on the drop down arrow) in the workspace and uploads files to it, they will not actually see the file structure updated with the new file names. You must first close the folder and reopen it. In the screenshot above, open the script directory and then upload files to it. I think you'll see what I am describing.
Is this the same bug you were talking about? Solution: Make a call to refresh the file tree after the upload process is complete. This issue also exist when you delete a file. You have to close the folder and open it back up again to see the changes occur. |
This is not a necessary feature right now, but we should think about some way to communicate upload progress on a status bar or on the blue bar at the bottom of the page. |
It is on our list to allow blueish progress bar for different top-level widgets similar what you see in VS Code or Chrome while loading the page. It is even more important for cloud solution than for VS Code, since connection delay and issues is something which we need to deal with. |
It is fs watching issue. I will have a look into it. A library which we use has troubles with symlinks and does not report some events for real paths :( Refreshing for each operation is work around, it should happen automatically based on fs events. |
@jgbradley1 could you try again, i've added a fix for fs watching with symlinks, cc @elaihau |
Some random notes while testing this:
|
packages/filesystem/src/node/nsfw-watcher/nsfw-filesystem-watcher.ts
Outdated
Show resolved
Hide resolved
i think we can wait till someone opens bugs for pseudo files and silent override. What would be good default |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works nicely! 🎉
32b299f
to
9f5cd55
Compare
@AlexTugarev I've added proper error handling and @jgbradley1 i've also added upload progress reporting :) |
Nice feature. i love it. |
It is not easy to implement: this part of code cannot prompt to a user, since it does not go through web socket connection). We can only fail the whole request. |
@akosyakov This is great. +1 on the progress bar. Something is wrong with the max file size. It's off by an order of magnitude. I cannot upload any file > 2 MB and they all fail with the
|
@jgbradley1 good catch! thank you for checking Updated: it turned out to be a proxy settings issue in Gitpod |
Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
@AlexTugarev @jgbradley1 I've fixed and retested locally handling of exceeded payload. It should be fine now. Good to merge? |
merging, @AlexTugarev said that he is fine with changes in off-line conversation |
fix #4088
TODO:
open a CQ forformidable - it's MIT and does not have 3rd party dependencies, we can wait till the CQ process for prod dependencies is clear