Don't set KOTLIN_BUNDLED in unit tests
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
package org.jetbrains.kotlin.idea
|
||||
|
||||
import com.intellij.openapi.application.PathMacroContributor
|
||||
import org.jetbrains.kotlin.idea.util.application.isUnitTestMode
|
||||
import org.jetbrains.kotlin.utils.PathUtil
|
||||
|
||||
/**
|
||||
@@ -15,11 +16,13 @@ import org.jetbrains.kotlin.utils.PathUtil
|
||||
*/
|
||||
class KotlinPluginMacros : PathMacroContributor {
|
||||
override fun registerPathMacros(macros: MutableMap<String, String>, legacyMacros: MutableMap<String, String>) {
|
||||
macros[KOTLIN_BUNDLED_PATH_VARIABLE] = PathUtil.kotlinPathsForIdeaPlugin.homePath.path
|
||||
if (!isUnitTestMode()) {
|
||||
macros[KOTLIN_BUNDLED_PATH_VARIABLE] = PathUtil.kotlinPathsForIdeaPlugin.homePath.path
|
||||
}
|
||||
}
|
||||
|
||||
companion object {
|
||||
const val KOTLIN_BUNDLED_PATH_VARIABLE = "KOTLIN_BUNDLED"
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user