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

CHE-5236 Java debugger didn't highlight line in decompiled class #5808

Merged
merged 2 commits into from
Jul 28, 2017

Conversation

tolusha
Copy link
Contributor

@tolusha tolusha commented Jul 26, 2017

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


BreakpointRenderer breakpointRenderer = getBreakpointRendererForEditor(editor);
if (breakpointRenderer != null) {
breakpointRenderer.setLineActive(currentBreakpoint.getLineNumber(), false);
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agree, can be omitted

Copy link
Contributor Author

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.

@codenvy-ci
Copy link

}

protected void findSourceToOpen(Location location, AsyncCallback<VirtualFile> callback) {
findInProject(location, new AsyncCallback<VirtualFile>() {
Copy link
Contributor

@AndrienkoAleksandr AndrienkoAleksandr Jul 26, 2017

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...)?

Copy link

@bmicklea bmicklea left a comment

Choose a reason for hiding this comment

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

Updated changelog

@bmicklea bmicklea added the kind/bug Outline of a bug - must adhere to the bug report template. label Jul 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Outline of a bug - must adhere to the bug report template.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants