mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-144532 "extends" keyword is not hinted correctly
This commit is contained in:
@@ -469,6 +469,9 @@ public class JavaKeywordCompletion {
|
||||
if (referenceList != null && referenceList.getParent() instanceof PsiClass) {
|
||||
psiClass = (PsiClass)referenceList.getParent();
|
||||
}
|
||||
else if (prevLeaf.getParent() instanceof PsiTypeParameterList && prevLeaf.getParent().getParent() instanceof PsiClass) {
|
||||
psiClass = (PsiClass)prevLeaf.getParent().getParent();
|
||||
}
|
||||
}
|
||||
|
||||
if (psiClass != null) {
|
||||
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
class A<T> <caret> {
|
||||
}
|
||||
@@ -64,6 +64,7 @@ public class KeywordCompletionTest extends LightCompletionTestCase {
|
||||
public void testExtends11() throws Exception { doTest(false); }
|
||||
public void testExtends12() throws Exception { doTest(false); }
|
||||
public void testExtends13() throws Exception { doTest(false); }
|
||||
public void testExtendsAfterClassGenerics() throws Exception { doTest(2, "extends", "implements"); }
|
||||
public void testSynchronized1() throws Exception { doTest(false); }
|
||||
|
||||
public void testSynchronized2() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user