tmysik commented on code in PR #5725:
URL: https://github.com/apache/netbeans/pull/5725#discussion_r1150018274
##########
php/php.editor/test/unit/src/org/netbeans/modules/php/editor/completion/PHPCCDocumentationTest.java:
##########
@@ -354,7 +364,21 @@ public void checkCompletionDocumentation(final String
file, final String caretLi
}
private void checkCompletionOnlyDocumentation(String filePath, String
caretLine) throws Exception {
- checkCompletionDocumentation(filePath, caretLine, false, "",
QueryType.DOCUMENTATION);
+ checkCompletionOnlyDocumentation(filePath, caretLine, false);
+ }
+
+ private void checkCompletionOnlyDocumentation(String filePath, String
caretLine, boolean noDocument) throws Exception {
+ if (!noDocument) {
+ checkCompletionDocumentation(filePath, caretLine, false, "",
QueryType.DOCUMENTATION);
+ } else {
+ try {
+ checkCompletionDocumentation(filePath, caretLine, false, "",
QueryType.DOCUMENTATION);
+ } catch (AssertionError ex) {
+ // there is no completion item
+ return;
+ }
Review Comment:
Hm, I don't know, I am not sure...
@sdedic Sváťo, what do you think? We can keep this PHP change as it is now,
of course, no problem.
Thanks.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists