Skip to content
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

fix: handle exception in WorkspaceDeleteHandler #12544

Merged

Conversation

vladarama
Copy link
Contributor

What it does

Closes: #11908

This PR addresses issue #11908 where the method moveFileToTrash in the WorkspaceDeleteHandler class was not handling promise rejections correctly. The method has been updated to use await when calling fileService.delete(...) to ensure that rejections are caught properly.

How to test

Try deleting a file within the workspace. The file should move to trash successfully. Errors during deletion will display appropriate console error messages.

Review checklist

Reminder for reviewers

@vince-fugnitto vince-fugnitto added quality issues related to code and application quality workspace issues related to the workspace labels May 23, 2023
Copy link
Member

@vince-fugnitto vince-fugnitto left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@vince-fugnitto vince-fugnitto merged commit 887e4a2 into eclipse-theia:master May 24, 2023
@vince-fugnitto vince-fugnitto added this to the 1.38.0 milestone May 25, 2023
@vladarama vladarama deleted the workspace-deletion-fixes branch June 14, 2023 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
quality issues related to code and application quality workspace issues related to the workspace
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unhandled exception in WorkspaceDeleteHandler#moveFileToTrash
2 participants