Enable new inference in IDE by default

This commit is contained in:
Mikhail Zarechenskiy
2020-02-14 14:37:23 +03:00
parent bdf1441c80
commit 2d15914d20
@@ -15,11 +15,7 @@ import org.jetbrains.kotlin.idea.util.isSnapshot
object NewInferenceForIDEAnalysisComponent {
private const val inferenceOptionV1 = "kotlin.use.new.inference.for.ide.analysis"
private const val inferenceOptionV2 = "kotlin.use.new.inference.for.ide.analysis.v2"
val defaultState: Boolean
get() {
val bundledVersion = KotlinCompilerVersion.VERSION
return isEap(bundledVersion) || isDev(bundledVersion) || isSnapshot(bundledVersion)
}
val defaultState: Boolean get() = true
@JvmStatic
fun setEnabled(project: Project, state: Boolean) {