Skip to content

Commit

Permalink
Temporal remove of registerAdditionalResourceBundleInTests hack in as 41
Browse files Browse the repository at this point in the history
  • Loading branch information
goodwinnk authored and erokhins committed Aug 12, 2020
1 parent 034b947 commit 3f34bc1
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions idea/src/org/jetbrains/kotlin/idea/testResourceBundle.kt.as41
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,6 @@

package org.jetbrains.kotlin.idea

import com.intellij.featureStatistics.FeatureStatisticsBundleEP
import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.extensions.Extensions
import com.jetbrains.cidr.lang.OCBundle

// Remove the function, when there's no dependency to cidr during running Kotlin tests.
fun registerAdditionalResourceBundleInTests() {
if (!ApplicationManager.getApplication().isUnitTestMode) {
return
}

val extensionPoint = Extensions.getRootArea().getExtensionPoint(FeatureStatisticsBundleEP.EP_NAME)
if (extensionPoint.extensions.none { it.qualifiedName == TestOCBundleProvider.qualifiedName }) {
extensionPoint.registerExtension(TestOCBundleProvider)
}
}

object TestOCBundleProvider : FeatureStatisticsBundleEP() {
init {
qualifiedName = OCBundle.BUNDLE
}
}

0 comments on commit 3f34bc1

Please sign in to comment.