mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEADEV-40830 Allow to use "*" wildcard in completion popup
This commit is contained in:
+3
-5
@@ -95,14 +95,12 @@ public class CamelHumpMatcher extends PrefixMatcher {
|
||||
return NameUtil.buildMatcher(myPrefix, 0, true, true);
|
||||
}
|
||||
|
||||
final CodeInsightSettings settings = CodeInsightSettings.getInstance();
|
||||
int variant = settings.COMPLETION_CASE_SENSITIVE;
|
||||
|
||||
switch (variant) {
|
||||
switch (CodeInsightSettings.getInstance().COMPLETION_CASE_SENSITIVE) {
|
||||
case CodeInsightSettings.NONE:
|
||||
return NameUtil.buildMatcher(myPrefix, 0, true, true);
|
||||
case CodeInsightSettings.FIRST_LETTER:
|
||||
return NameUtil.buildMatcher(myPrefix, 1, true, true);
|
||||
int exactPrefixLen = myPrefix.startsWith("*") ? 0 : 1;
|
||||
return NameUtil.buildMatcher(myPrefix, exactPrefixLen, true, true);
|
||||
case CodeInsightSettings.ALL:
|
||||
return NameUtil.buildMatcher(myPrefix, 0, false, false);
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user