mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
json schema icon provider: reorder the less expensive check before
GitOrigin-RevId: 655297243b7e7ba0dd9195573e83c87a0c74850e
This commit is contained in:
committed by
intellij-monorepo-bot
parent
dfa13ae321
commit
b988ed4707
@@ -22,7 +22,7 @@ public class JsonSchemaIconProvider implements FileIconProvider {
|
||||
if (project != null
|
||||
&& JsonSchemaEnabler.EXTENSION_POINT_NAME.getExtensionList().stream().anyMatch(e -> e.canBeSchemaFile(file))) {
|
||||
JsonSchemaService service = JsonSchemaService.Impl.get(project);
|
||||
if (service.isSchemaFile(file) && service.isApplicableToFile(file)) {
|
||||
if (service.isApplicableToFile(file) && service.isSchemaFile(file)) {
|
||||
return AllIcons.FileTypes.JsonSchema;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user