IJPL-159219 Intention, inspection and file templates are missing

GitOrigin-RevId: 05136bee02b6cfc27646b50bad238016821fa210
This commit is contained in:
Alexander Lobas
2024-07-30 16:47:02 +02:00
committed by intellij-monorepo-bot
parent 8511feda42
commit 6c119ce6e1

View File

@@ -95,8 +95,11 @@ object LocalizationUtil {
val pathString = FileUtil.toSystemIndependentName(localizedPath.pathString)
defaultLoader?.getResourceAsStream(pathString)?.let { return it }
}
val pureResourcePath = FileUtil.toSystemIndependentName(path.pathString)
return getPluginClassLoader()?.getResourceAsStream(pureResourcePath)
val resourcePath = path.pathString
val pureResourcePath = FileUtil.toSystemIndependentName(resourcePath)
return getPluginClassLoader()?.getResourceAsStream(resourcePath)
?: getPluginClassLoader()?.getResourceAsStream(pureResourcePath)
?: defaultLoader?.getResourceAsStream(resourcePath)
?: defaultLoader?.getResourceAsStream(pureResourcePath)
}