IJPL-158473 remove the product prefix (like IC-) from the coordinates version, which was introduced with IJPGP 2.2.0

Signed-off-by: Jakub Chrzanowski <jakub.chrzanowski@jetbrains.com>


(cherry picked from commit cc26859af9b25f3cdfb9967d8d8501bd3131d379)

IJ-CR-151317

GitOrigin-RevId: f28cb719fcd7a070ca356b8a430150b30f25e3e0
This commit is contained in:
Jakub Chrzanowski
2024-12-10 21:29:35 +01:00
committed by intellij-monorepo-bot
parent 5ccf227f51
commit 9f15c8a644

View File

@@ -108,7 +108,7 @@ internal class IntelliJPlatformAttachSourcesProvider : AttachSourcesProvider {
* @param coordinates The Maven coordinates of the IntelliJ Platform whose sources need to be attached.
*/
private fun createAttachLocalPlatformSourcesAction(psiFile: PsiFile, coordinates: MavenCoordinates) =
resolveIntelliJPlatformAction(psiFile, coordinates.version.substringBefore('+'))
resolveIntelliJPlatformAction(psiFile, coordinates.version.substringAfter('-').substringBefore('+'))
/**
* Creates an action to attach sources of bundled plugins for the IntelliJ Platform.
@@ -118,7 +118,7 @@ internal class IntelliJPlatformAttachSourcesProvider : AttachSourcesProvider {
*/
private fun createAttachBundledPluginSourcesAction(psiFile: PsiFile, coordinates: MavenCoordinates) =
createAttachSourcesArchiveAction(psiFile, ApiSourceArchive.entries.firstOrNull { it.id == coordinates.artifactId })
?: resolveIntelliJPlatformAction(psiFile, coordinates.version.substringBefore('+'))
?: resolveIntelliJPlatformAction(psiFile, coordinates.version.substringAfter('-').substringBefore('+'))
/**
* Attach the provided sources archive.