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

@tolusha tolusha self-assigned this Jul 26, 2017
@tolusha tolusha requested a review from vparfonov as a code owner July 26, 2017 07:19

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
@tolusha tolusha merged commit e4286e6 into master Jul 28, 2017
@tolusha tolusha deleted the CHE-5236 branch July 28, 2017 14:27
@slemeur slemeur added this to the 5.16.0 milestone Aug 9, 2017
dmytro-ndp pushed a commit to dmytro-ndp/che that referenced this pull request Aug 16, 2017
JPinkney pushed a commit to JPinkney/che that referenced this pull request Aug 17, 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.

8 participants