Do not check script discovery file extension

it is optional (so far), so this check was incorrect.
#KT-44117 fixed
This commit is contained in:
Ilya Chernikov
2021-01-11 19:50:22 +01:00
parent 0e3aaceb16
commit bd708da82c

View File

@@ -50,6 +50,5 @@ class ScriptTemplatesClassRootsIndex :
val parent = file.parent ?: return false
return parent.isDirectory
&& parent.path.endsWith(suffix)
&& file.path.endsWith(SCRIPT_DEFINITION_MARKERS_EXTENSION_WITH_DOT)
}
}