CIDR: Avoid Java errors during KTS analysis in CIDR

There is no Java support in CIDR. Therefore:
- analyze KTS in CIDR using Common platform
- disable error highlighting for KTS in CIDR

Issue #KT-29953 Fixed
This commit is contained in:
Dmitriy Dolovov
2019-02-13 14:11:27 +07:00
parent a4d6f72ad1
commit 45f028d353
3 changed files with 10 additions and 3 deletions
@@ -9,4 +9,8 @@ package org.jetbrains.kotlin.idea.util
import com.intellij.util.PlatformUtils
val isRunningInCidrIde by lazy { PlatformUtils.isCidr() }
// Currently CIDR IDEs (CLion and AppCode) have no Java support.
// Use this property to bypass Java-specific logic in CIDR.
val isRunningInCidrIde: Boolean by lazy(LazyThreadSafetyMode.PUBLICATION) {
PlatformUtils.isCidr()
}