Disable specific EPs for K/N plugin for CLion/AppCode #KT-26717

This commit is contained in:
Dmitriy Dolovov
2018-09-10 17:16:45 +03:00
parent 71be94b3e4
commit 314173af60
2 changed files with 9 additions and 9 deletions
@@ -14,7 +14,8 @@ public class KotlinNativeIdeInitializer implements ApplicationComponent {
@Override
public void initComponent() {
unregisterGroovyInspections();
// TODO: Move this to Kotlin/Native plugin for CLion and AppCode (see KT-26717):
//unregisterGroovyInspections();
}
// There are groovy local inspections which should not be loaded w/o groovy plugin enabled.
@@ -6,9 +6,7 @@
package org.jetbrains.kotlin.ide.konan
import com.intellij.ide.highlighter.ArchiveFileType
import com.intellij.ide.util.TipAndTrickBean
import com.intellij.openapi.components.ApplicationComponent
import com.intellij.openapi.extensions.Extensions
import com.intellij.openapi.fileTypes.FileTypeManager
import org.jetbrains.kotlin.konan.library.KLIB_FILE_EXTENSION
@@ -19,11 +17,12 @@ class KotlinNativeApplicationComponent : ApplicationComponent {
override fun initComponent() {
FileTypeManager.getInstance().associateExtension(ArchiveFileType.INSTANCE, KLIB_FILE_EXTENSION)
val extensionPoint = Extensions.getRootArea().getExtensionPoint(TipAndTrickBean.EP_NAME)
for (name in arrayOf("Kotlin.html", "Kotlin_project.html", "Kotlin_mix.html", "Kotlin_Java_convert.html")) {
TipAndTrickBean.findByFileName(name)?.let {
extensionPoint.unregisterExtension(it)
}
}
// TODO: Move this to Kotlin/Native plugin for CLion and AppCode (see KT-26717):
// val extensionPoint = Extensions.getRootArea().getExtensionPoint(TipAndTrickBean.EP_NAME)
// for (name in arrayOf("Kotlin.html", "Kotlin_project.html", "Kotlin_mix.html", "Kotlin_Java_convert.html")) {
// TipAndTrickBean.findByFileName(name)?.let {
// extensionPoint.unregisterExtension(it)
// }
// }
}
}