Add resources-en for idea
#KT-38297 Fixed
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user