Disable klib fileType in lue of KLibFileTypeFactory
Relates to #KT-38767 Relates to #KT-38571
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user