-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
CHE-5236 Java debugger didn't highlight line in decompiled class #5808
Conversation
|
||
BreakpointRenderer breakpointRenderer = getBreakpointRendererForEditor(editor); | ||
if (breakpointRenderer != null) { | ||
breakpointRenderer.setLineActive(currentBreakpoint.getLineNumber(), false); |
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.
Is this line really necessary?
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.
Agree, can be omitted
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.
To avoid multiple annotations it is better to remove active line at first.
Build success. https://ci.codenvycorp.com/job/che-pullrequests-build/3179/ |
} | ||
|
||
protected void findSourceToOpen(Location location, AsyncCallback<VirtualFile> callback) { | ||
findInProject(location, new AsyncCallback<VirtualFile>() { |
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.
Current code it's ok for me, but maybe findInProject, findInWorkspace, searchSource should return promise and then this code can be simplified a bit (less callbacks...)?
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.
Updated changelog
What does this PR do?
When debugger enters decompiled class then it waits for resources to be downloaded and then highlight the proper line
What issues does this PR fix or reference?
#5236
Changelog
Fix to Java debugger to highlight lines in decompiled sources.
Release Notes
not required
Docs PR
not required