From 88efac00b31f5197613da9643135085e2c01d4a2 Mon Sep 17 00:00:00 2001 From: Vladimir Dolzhenko Date: Wed, 20 May 2020 10:07:03 +0000 Subject: [PATCH] Disable klib fileType in lue of KLibFileTypeFactory Relates to #KT-38767 Relates to #KT-38571 --- .../kotlin/idea/core/KLibFileTypeFactory.kt | 19 +++++++++++++++++++ idea/resources/META-INF/plugin.xml | 5 +++++ idea/resources/META-INF/plugin.xml.201 | 5 +++++ idea/resources/META-INF/plugin.xml.as40 | 5 +++++ 4 files changed, 34 insertions(+) create mode 100644 idea/idea-core/src/org/jetbrains/kotlin/idea/core/KLibFileTypeFactory.kt diff --git a/idea/idea-core/src/org/jetbrains/kotlin/idea/core/KLibFileTypeFactory.kt b/idea/idea-core/src/org/jetbrains/kotlin/idea/core/KLibFileTypeFactory.kt new file mode 100644 index 00000000000..9dbbb7d2302 --- /dev/null +++ b/idea/idea-core/src/org/jetbrains/kotlin/idea/core/KLibFileTypeFactory.kt @@ -0,0 +1,19 @@ +/* + * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. + */ + +package org.jetbrains.kotlin.idea.core + +import com.intellij.ide.highlighter.ArchiveFileType +import com.intellij.openapi.fileTypes.FileTypeConsumer +import com.intellij.openapi.fileTypes.FileTypeFactory +import org.jetbrains.kotlin.library.KLIB_FILE_EXTENSION + +// BUNCH: 193+ +// temporary enabled due to KT-38767 +class KLibFileTypeFactory : FileTypeFactory() { + override fun createFileTypes(consumer: FileTypeConsumer) { + consumer.consume(ArchiveFileType.INSTANCE, KLIB_FILE_EXTENSION) + } +} \ No newline at end of file diff --git a/idea/resources/META-INF/plugin.xml b/idea/resources/META-INF/plugin.xml index d373ce96e45..b7af01af88c 100644 --- a/idea/resources/META-INF/plugin.xml +++ b/idea/resources/META-INF/plugin.xml @@ -126,10 +126,15 @@ The Kotlin plugin provides language support in IntelliJ IDEA and Android Studio. fieldName="INSTANCE" language="kotlin" extensions="kt;kts"/> + + + + + + + + + + + +