-
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
Make FileSystemCommands.UPLOAD to return FileUploadResult #8766
Make FileSystemCommands.UPLOAD to return FileUploadResult #8766
Conversation
Adding reference to Refactor upload functionality |
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.
@tomer-epstein can you clarify what the pull-request is attempting to fix and why, it is not clear with the current provided description. In addition, it would help to provide a sample vscode extension for reviewers to test with (it may also help understanding why the changes are necessary).
@vince-fugnitto , Sure as usual I'll provide a sample vscode ext to test the change. |
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.
Code LGTM, also tested successfully.
@vince-fugnitto do you think we should update changelog for this command new return value?
packages/filesystem/src/browser/filesystem-frontend-contribution.ts
Outdated
Show resolved
Hide resolved
packages/filesystem/src/browser/filesystem-frontend-contribution.ts
Outdated
Show resolved
Hide resolved
@amiramw I do not believe so since the original return value is |
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.
I confirmed that the changes work correctly 👍
- verified the code
- verified that the plugin works correctly when uploading the file
- verified both on the
browser
andelectron
targets:browser
: successfully uploadselectron
: theupload
functionality is disabled onelectron
correctly resulting inundefined
@vince-fugnitto may you merge? I don't have perms. |
@tomer-epstein I'd love to, but we decided as a community in our last dev meeting that we should not merge any new pull-requests (no matter how small) until we perform the release (this Thursday) or we have CI running again. We are currently working on bringing CI back by re-implementing it using GitHub Actions. |
@tomer-epstein do you mind rebasing the pull-request against |
Signed-off-by: Tomer Epstein <tomer.epstein@sap.com>
@vince-fugnitto you may merge. |
Signed-off-by: Tomer Epstein tomer.epstein@sap.com
What it does
Make FileSystemCommands.UPLOAD to return FileUploadResult
How to test
git clone https://github.com/tomer-epstein/vscode-theia-tomer.git
cd vscode-theia-tomer
npm i && npm run package
copy vscode-theia-tomer-0.0.1.vsix to plugins folder
Right click on a folder in the Explorer, choose 'Open Theia Upload Dialog'.
Review checklist
Reminder for reviewers