Minor: do not associate with the same extensions multiple times in ScriptDefinitionsManager
This commit is contained in:
+1
-1
@@ -198,7 +198,7 @@ class ScriptDefinitionsManager(private val project: Project) : LazyScriptDefinit
|
|||||||
|
|
||||||
val newExtensions = getKnownFilenameExtensions().filter {
|
val newExtensions = getKnownFilenameExtensions().filter {
|
||||||
fileTypeManager.getFileTypeByExtension(it) != KotlinFileType.INSTANCE
|
fileTypeManager.getFileTypeByExtension(it) != KotlinFileType.INSTANCE
|
||||||
}.toList()
|
}.toSet()
|
||||||
|
|
||||||
if (newExtensions.any()) {
|
if (newExtensions.any()) {
|
||||||
// Register new file extensions
|
// Register new file extensions
|
||||||
|
|||||||
Reference in New Issue
Block a user