Disable klib fileType in lue of KLibFileTypeFactory

Relates to #KT-38767
Relates to #KT-38571
This commit is contained in:
Vladimir Dolzhenko
2020-05-20 10:07:03 +00:00
parent 081d6c1dff
commit 88efac00b3
4 changed files with 34 additions and 0 deletions
@@ -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)
}
}
+5
View File
@@ -126,10 +126,15 @@ The Kotlin plugin provides language support in IntelliJ IDEA and Android Studio.
fieldName="INSTANCE"
language="kotlin"
extensions="kt;kts"/>
<!-- temporary disabled due to KT-38767
<fileType name="KLib"
implementationClass="org.jetbrains.kotlin.idea.KLibFileType"
fieldName="INSTANCE"
extensions="klib"/>
-->
<fileTypeFactory implementation="org.jetbrains.kotlin.idea.core.KLibFileTypeFactory"/>
<fileType name="KNM"
implementationClass="org.jetbrains.kotlin.idea.klib.KlibMetaFileType"
fieldName="INSTANCE"
+5
View File
@@ -126,10 +126,15 @@ The Kotlin plugin provides language support in IntelliJ IDEA and Android Studio.
fieldName="INSTANCE"
language="kotlin"
extensions="kt;kts"/>
<!-- temporary disabled due to KT-38767
<fileType name="KLib"
implementationClass="org.jetbrains.kotlin.idea.KLibFileType"
fieldName="INSTANCE"
extensions="klib"/>
-->
<fileTypeFactory implementation="org.jetbrains.kotlin.idea.core.KLibFileTypeFactory"/>
<fileType name="KNM"
implementationClass="org.jetbrains.kotlin.idea.klib.KlibMetaFileType"
fieldName="INSTANCE"
+5
View File
@@ -106,10 +106,15 @@ The Kotlin plugin provides language support in IntelliJ IDEA and Android Studio.
fieldName="INSTANCE"
language="kotlin"
extensions="kt;kts"/>
<!-- temporary disabled due to KT-38767
<fileType name="KLib"
implementationClass="org.jetbrains.kotlin.idea.KLibFileType"
fieldName="INSTANCE"
extensions="klib"/>
-->
<fileTypeFactory implementation="org.jetbrains.kotlin.idea.core.KLibFileTypeFactory"/>
<fileType name="KNM"
implementationClass="org.jetbrains.kotlin.idea.klib.KlibMetaFileType"
fieldName="INSTANCE"