mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
let FunctionalExpressionCompletionProvider and MethodReferenceCompletionProvider work in different contexts to avoid duplicate variants
This commit is contained in:
+1
-1
@@ -211,7 +211,7 @@ public class JavaSmartCompletionContributor extends CompletionContributor {
|
||||
extend(CompletionType.SMART, LabelReferenceCompletion.LABEL_REFERENCE, new LabelReferenceCompletion());
|
||||
|
||||
extend(CompletionType.SMART, psiElement(), new FunctionalExpressionCompletionProvider());
|
||||
extend(CompletionType.SMART, psiElement(), new MethodReferenceCompletionProvider());
|
||||
extend(CompletionType.SMART, psiElement().afterLeaf("::"), new MethodReferenceCompletionProvider());
|
||||
}
|
||||
|
||||
@NotNull
|
||||
|
||||
+2
-3
@@ -155,10 +155,9 @@ public class SmartType18CompletionTest extends LightFixtureCompletionTestCase {
|
||||
doTest(true);
|
||||
}
|
||||
|
||||
public void testStaticMethodReference() { doTest(false); }
|
||||
public void testStaticMethodReference() { doTest(); }
|
||||
public void testStaticMethodReferenceInContextWithTypeArgs() {
|
||||
configureByTestName();
|
||||
checkResultByFile("/" + getTestName(false) + "-out.java");
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testOuterMethodReference() { doTest(true); }
|
||||
|
||||
Reference in New Issue
Block a user