mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
java completion: enable package suggestions inside type arguments (IDEA-193049)
This commit is contained in:
+2
-5
@@ -116,7 +116,8 @@ public class JavaCompletionContributor extends CompletionContributor {
|
||||
|
||||
if (JavaKeywordCompletion.isDeclarationStart(position) ||
|
||||
JavaKeywordCompletion.isInsideParameterList(position) ||
|
||||
isInsideAnnotationName(position)) {
|
||||
isInsideAnnotationName(position) ||
|
||||
psiElement().inside(PsiReferenceParameterList.class).accepts(position)) {
|
||||
return new OrFilter(ElementClassFilter.CLASS, ElementClassFilter.PACKAGE);
|
||||
}
|
||||
|
||||
@@ -143,10 +144,6 @@ public class JavaCompletionContributor extends CompletionContributor {
|
||||
return ElementClassFilter.CLASS;
|
||||
}
|
||||
|
||||
if (psiElement().inside(PsiReferenceParameterList.class).accepts(position)) {
|
||||
return ElementClassFilter.CLASS;
|
||||
}
|
||||
|
||||
if (psiElement().inside(PsiAnnotationParameterList.class).accepts(position)) {
|
||||
return createAnnotationFilter(position);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
class Foo {
|
||||
List<java.la<caret>> foo() {}
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
class Foo {
|
||||
List<java.lang.<caret>> foo() {}
|
||||
}
|
||||
+1
@@ -1351,6 +1351,7 @@ class XInternalError {}
|
||||
void testNoClosingWhenChoosingWithParenBeforeIdentifier() { doTest '(' }
|
||||
|
||||
void testPackageInMemberType() { doTest() }
|
||||
void testPackageInMemberTypeGeneric() { doTest() }
|
||||
|
||||
void testConstantInAnno() { doTest('\n') }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user