mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
misc [Rider]: logging to check weighting of backend items
GitOrigin-RevId: 8d42fcc4c369177a62258aec7317ddc71b389d05
This commit is contained in:
committed by
intellij-monorepo-bot
parent
a776057735
commit
41f45627fe
+8
-1
@@ -412,11 +412,18 @@ public class DefaultChooseByNameItemProvider implements ChooseByNameInScopeItemP
|
||||
if (base.getModel() instanceof MatchResultCustomizerModel customizerModel && fullMatcher != null) {
|
||||
MatchResult customResult = customizerModel.getCustomRulesMatchResult(fullMatcher, pattern, matcher, name);
|
||||
if (customResult != null) {
|
||||
if (LOG.isDebugEnabled()) {
|
||||
LOG.debug("custom result weight for name [" + name + "] = " + customResult.matchingDegree);
|
||||
}
|
||||
return customResult;
|
||||
}
|
||||
}
|
||||
|
||||
return matches(base, pattern, matcher, name);
|
||||
final var defaultMatch = matches(base, pattern, matcher, name);
|
||||
if (LOG.isDebugEnabled() && defaultMatch != null) {
|
||||
LOG.debug("default result weight for name [" + name + "] = " + defaultMatch.matchingDegree);
|
||||
}
|
||||
return defaultMatch;
|
||||
}
|
||||
|
||||
protected static @Nullable MatchResult matches(@NotNull ChooseByNameViewModel base,
|
||||
|
||||
Reference in New Issue
Block a user