You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "tmysik (via GitHub)" <gi...@apache.org> on 2023/04/25 13:10:06 UTC
[GitHub] [netbeans] tmysik commented on a diff in pull request #5885: Fix the problem that documentation for methods and properties is not shown #5881
tmysik commented on code in PR #5885:
URL: https://github.com/apache/netbeans/pull/5885#discussion_r1176494236
##########
php/php.editor/src/org/netbeans/modules/php/editor/completion/PHPCodeCompletion.java:
##########
@@ -335,7 +335,9 @@ public CodeCompletionResult complete(CodeCompletionContext completionContext) {
// GH-4494 if query type is documentation, get a whole identifier as a prefix
boolean upToOffset = queryType != QueryType.DOCUMENTATION;
prefix = getPrefix(info, caretOffset, upToOffset, PrefixBreaker.WITH_NS_PARTS);
+ String prefixUntilCaret = getPrefix(info, caretOffset, true, PrefixBreaker.WITH_NS_PARTS); // GH-5881
Review Comment:
If `upToOffset` is `true`, we can skip this call and use `prefix` directly, no?
--
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: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists