IDEA-254315 Description in File Templates does not work any more

GitOrigin-RevId: f2aa60d97f66afed790a85b80517354373a944d7
This commit is contained in:
Dmitry Avdeev
2020-11-09 16:58:59 +00:00
committed by intellij-monorepo-bot
parent 9e0dbabb9a
commit ebab15db82
@@ -273,13 +273,13 @@ class FileTemplatesLoader implements Disposable {
}
descName = MessageFormat.format("{0}.{1}_{2}" + DESCRIPTION_EXTENSION_SUFFIX, templateName, templateExtension, locale.getLanguage());
descPath = pathPrefix.isEmpty() ? descName : pathPrefix + descName;
descPath = pathPrefix.isEmpty() ? descName : pathPrefix + "/" + descName;
if (descriptionPaths.contains(descPath)) {
return descPath;
}
descName = templateName + "." + templateExtension + DESCRIPTION_EXTENSION_SUFFIX;
descPath = pathPrefix.isEmpty() ? descName : pathPrefix + descName;
descPath = pathPrefix.isEmpty() ? descName : pathPrefix + "/" + descName;
if (descriptionPaths.contains(descPath)) {
return descPath;
}