-
Notifications
You must be signed in to change notification settings - Fork 408
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
Intellisense does not work when attached javadoc can't be read #1314
Conversation
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.
Can you please add some unit tests?
@fbricon I have updated the PR. |
@@ -0,0 +1,176 @@ | |||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
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.
the build, reporting and profiles sections are not 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.
Fixed.
@@ -2563,6 +2565,28 @@ public void testCompletion_FilterTypesKeepMethods() throws JavaModelException { | |||
} | |||
} | |||
|
|||
@Test | |||
public void testCompletion_InvalidJavadoc() throws Exception { | |||
importProjects("maven/aspose"); |
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.
Can we make the project folder name to be consistent with the artifact id aspose-word-test
in the pom.xml?
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.
Done.
IProject project = null; | ||
ICompilationUnit unit = null; | ||
try { | ||
project = ResourcesPlugin.getWorkspace().getRoot().getProject("aspose-word-test"); |
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.
-> WorkspaceHelper.getProject("aspose-word-test")
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.
Done.
return element.getAttachedJavadoc(null); | ||
String attachedJavadoc; | ||
try { | ||
attachedJavadoc = element.getAttachedJavadoc(null); |
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.
return element.getAttachedJavadoc(null);
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.
Done.
Signed-off-by: Snjezana Peco <[email protected]>
Fixes redhat-developer/vscode-java#1217
Signed-off-by: Snjezana Peco [email protected]