Add resources-en for idea

#KT-38297 Fixed
This commit is contained in:
Dmitry Gridin
2020-05-19 10:55:55 +07:00
parent 12217ef2ab
commit 0df5d5158d
872 changed files with 4 additions and 3 deletions
@@ -28,7 +28,7 @@ class IntentionDescriptionTest : LightPlatformTestCase() {
for (tool in intentionTools) {
val className = tool.className
val shortName = className.substringAfterLast(".").replace("$", "")
val directory = File("idea/resources/intentionDescriptions/$shortName")
val directory = File("idea/resources-en/intentionDescriptions/$shortName")
if (!directory.exists() || !directory.isDirectory) {
if (tool.categories != null) {
errors.append("No description directory for intention '").append(className).append("'\n")
@@ -56,7 +56,7 @@ class IntentionDescriptionTest : LightPlatformTestCase() {
private fun String.isXmlIntentionName() = startsWith("Add") && endsWith("ToManifest")
private fun loadKotlinIntentions(): List<IntentionActionBean> {
val extensionPoint = Extensions.getArea(null).getExtensionPoint(IntentionManager.EP_INTENTION_ACTIONS)
val extensionPoint = Extensions.getRootArea().getExtensionPoint(IntentionManager.EP_INTENTION_ACTIONS)
return extensionPoint.extensions.toList().filter {
it.pluginDescriptor.pluginId == KotlinPluginUtil.KOTLIN_PLUGIN_ID
}