Don't complete keywords for upper case prefix
This commit is contained in:
@@ -221,7 +221,7 @@ public class JetKeywordCompletionContributor extends CompletionContributor {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean prefixMatches(@NotNull String name) {
|
public boolean prefixMatches(@NotNull String name) {
|
||||||
return StringUtil.startsWithIgnoreCase(name, getPrefix());
|
return StringUtil.startsWith(name, getPrefix());
|
||||||
}
|
}
|
||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
P<caret>
|
||||||
|
|
||||||
|
// ABSENT: public, private, protected
|
||||||
@@ -119,6 +119,10 @@ public class KeywordsCompletionTest extends JetCompletionTestBase {
|
|||||||
doTest();
|
doTest();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void testNoCompletionForCapitalPrefix() {
|
||||||
|
doTest();
|
||||||
|
}
|
||||||
|
|
||||||
public void testPropertySetterGetter() {
|
public void testPropertySetterGetter() {
|
||||||
doTest();
|
doTest();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user