Skip to content

fix: handle exception in WorkspaceDeleteHandler#12544

Merged
vince-fugnitto merged 1 commit intoeclipse-theia:masterfrom
vladarama:workspace-deletion-fixes
May 24, 2023
Merged

fix: handle exception in WorkspaceDeleteHandler#12544
vince-fugnitto merged 1 commit intoeclipse-theia:masterfrom
vladarama:workspace-deletion-fixes

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