drccrd commented on code in PR #3999:
URL: 
https://github.com/apache/incubator-kie-tools/pull/3999#discussion_r4005262193


##########
packages/drools-lsp/drools-completion/src/main/java/org/drools/completion/DRLCompletionHelper.java:
##########
@@ -313,11 +313,13 @@ private static List<CompletionItem> 
memberItemsForChain(String[] chain, String t
         String head = chain[0];
         String rootType;
         int firstFieldSegment = 1;
+        boolean typeReference = false;
         if (head.startsWith("$")) {
             rootType = LhsBindingResolver.resolveAt(text, 
DRLHoverHelper.positionToOffset(text, caret), typeIndex)
                     .get(head.substring(1));
         } else if (!head.isEmpty() && Character.isUpperCase(head.charAt(0))) {
             rootType = head;
+            typeReference = true;

Review Comment:
   re-used existing qualified-prefix detection from `DRLHoverHelper` in 
[2a77d85](https://github.com/apache/incubator-kie-tools/pull/3999/commits/2a77d85378e399fe89fe696a7c5e7420ca5e7693)



-- 
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]

Reply via email to