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