-
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 #12546: UI not updated upon editing breakpoint condition #12980
Conversation
I don't know if this is the right fix: if we look at |
If you ask me, I think it is the right fix, as it fixes the root issue. The contract of the
There is no hint in the contract that Obviously, if Also, I'd like to note that besides existing code in Theia itself, like |
Yes, but isn't |
Perhaps, but I would not consider it as directly relevant to the proposed patch. Basically, as a Theia user, I would just like the issue #12546, which was reported back in May, to be fixed. Since it has not been fixed so far, I proposed a patch after due consideration of the underlying issue, which does fix a major part of the breakage introduced by #12183, which caused the issue in the first place. Given that, I'd like to leave any further optimisations in the design or implementation of the related code, which are of course possible, to the esteemed committers or other contributors. It seems fair, doesn't it? |
OK. The change to I could try to make the change myself, but since it would be a big breaking change and a significant amount of work, I'd like to be sure upfront that we are really on the same page here, and such a change could actually be accepted. |
So I guess we'll have to live with your fix for the moment, even though, IMO, it's a workaround for the general bogusness surrounding this topic. |
I've filed #13052 |
@pisv could you rebase and push to trigger running a the tests against the latest version of master? |
…tion Fixes eclipse-theia#12546, which is a regression introduced by eclipse-theia#12183, by ensuring that `BreakpointManager.setMarkers` fires a `SourceBreakpointsChangeEvent` when `oldMarker === newMarker`, as there is no way to actually detect a change in this case.
Thank you for your review and approval, Thomas. I agree with you regarding "the general bogusness surrounding this topic" (to put it mildly). I still think though that the only clean solution in the presence of change detection in Having said that, I can understand that such a breaking change could be unacceptable.
I have rebased and pushed the branch, but it looks like an intermittent build failure has occurred now. |
What it does
Fixes #12546, which is a regression introduced by #12183, by ensuring that
BreakpointManager.setMarkers
fires aSourceBreakpointsChangeEvent
whenoldMarker === newMarker
, as there is no way to actually detect a change in this case.How to test
Verify that UI not updated upon editing breakpoint condition #12546 is actually fixed by following the steps given in the issue description.
Also verify that Multiple
DebugEditorModel
s for same URI lead to stack overflow #11878, which was fixed by Fire breakpoint events only if breakpoint metadata changes #12183, is still fixed after this patch is applied, and there are no other regressions in breakpoint management in general.Review checklist
Reminder for reviewers