-
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
Fix for #11401 #11409
Fix for #11401 #11409
Conversation
Signed-off-by: Baltasar Belyavsky <[email protected]>
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.
@bbelyavsky-ti Given that the changes require a special setup to test manually, do you mind addressing Vince's comment and add a unit test for this? While the changes look reasonable, it'd be great to confirm that it does work as intended before merging.
Signed-off-by: Baltasar Belyavsky <[email protected]>
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 was able to reproduce the problem and verify the solution. Two minor comments.
Signed-off-by: Baltasar Belyavsky <[email protected]>
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.
The fix works and the code and the tests look good 👍
Thank you for your input, @colin-grant-work, @msujew, @vince-fugnitto. Would one of you be able to merge this PR? I do not have the required permissions. Thank you! |
Signed-off-by: Baltasar Belyavsky [email protected]
What it does
Fixes: #11401
How to test
Unit tests implemented and included in this PR. In addition to that, in our own implementation of a Theia-based IDE, I've tested the fix using our implementation of a C++ error-parser which contributes markers to the Problems view when a C++ project is built. This bug was causing all markers on a C++ project scope to be cleared every time any file is deleted within the project. For more context - the class MarkerManager uses the FileChangesEvent.contains() method to clear markers associated with any deleted files. The FileChangesEvent.contains() intends to check if a file's ancestor directory has been deleted, as can be seen in the code comments. But this bug is causing the opposite effect, causing markers to be cleared on a project when any contained file is deleted.
Review checklist
Reminder for reviewers