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

Hover not working when browsing source code from .class files #409

Merged
merged 1 commit into from
Oct 27, 2017

Conversation

snjeza
Copy link
Contributor

@snjeza snjeza commented Oct 26, 2017

Fixes #390

Signed-off-by: Snjezana Peco [email protected]

@snjeza snjeza requested review from gorkem and fbricon October 26, 2017 17:22
Copy link
Contributor

@fbricon fbricon left a comment

Choose a reason for hiding this comment

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

It works better, but hovering over String in public Exception(String message) doesn't show the expected javadoc.

public void testHoverThrowable() throws Exception {
String uriString = ClassFileUtil.getURI(project, "java.lang.Exception");
URI uri = JDTUtils.toURI(uriString);
IClassFile classFile = JDTUtils.resolveClassFile(uri);
Copy link
Contributor

Choose a reason for hiding this comment

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

you can directly call JDTUtils.resolveClassFile(uriString); instead

@fbricon
Copy link
Contributor

fbricon commented Oct 27, 2017

Failed tests:
HoverHandlerTest.testHoverThrowable:299 Unexpected hover
HoverHandlerTest.testHoverUnresolvedType:315 Unexpected hover

@fbricon fbricon merged commit a6b224c into eclipse-jdtls:master Oct 27, 2017
@fbricon
Copy link
Contributor

fbricon commented Oct 27, 2017

Nice work @snjeza!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants