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)
}
}