Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Ensure primary node is properly calculated when in method context loc…

…ation.
  • Loading branch information...
commit d0d3e154535728ff8758aa661e90abb1e6558a12 1 parent c2842f2
@aeisenberg aeisenberg authored
View
3  ide/org.codehaus.groovy.eclipse.dsl/src/org/codehaus/groovy/eclipse/dsl/proposals/DSLDProposalProvider.java
@@ -62,7 +62,8 @@
pattern.setCurrentScope(context.currentScope);
pattern.setTargetType(completionType);
pattern.setStatic(isStatic);
- pattern.setPrimaryNode(context.location == ContentAssistLocation.STATEMENT);
+ pattern.setPrimaryNode(context.location == ContentAssistLocation.STATEMENT ||
+ (context.location == ContentAssistLocation.METHOD_CONTEXT && context.currentScope.isPrimaryNode()));
contributions = store.findContributions(pattern, DSLPreferences.getDisabledScriptsAsSet());
boolean isMethodContext = context instanceof MethodInfoContentAssistContext;
Please sign in to comment.
Something went wrong with that request. Please try again.