From 3767ec32bb504a057c68f837115dd27a7a5f3cf6 Mon Sep 17 00:00:00 2001 From: "Vladimir.Koshelev" Date: Tue, 29 Jul 2025 17:47:14 +0200 Subject: [PATCH] [vision] adjust PyCharmWhatsNewInVisionContentProvider to a new refactoring GitOrigin-RevId: 3d1548b2f528fd1ada3bdcf355ec596bd9ded22f --- .../whatsnew/PyCharmWhatsNewInVisionContentProvider.kt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/python/ide/impl/src/com/intellij/pycharm/community/ide/impl/whatsnew/PyCharmWhatsNewInVisionContentProvider.kt b/python/ide/impl/src/com/intellij/pycharm/community/ide/impl/whatsnew/PyCharmWhatsNewInVisionContentProvider.kt index 72e677ff5277..a0f71a2ac97e 100644 --- a/python/ide/impl/src/com/intellij/pycharm/community/ide/impl/whatsnew/PyCharmWhatsNewInVisionContentProvider.kt +++ b/python/ide/impl/src/com/intellij/pycharm/community/ide/impl/whatsnew/PyCharmWhatsNewInVisionContentProvider.kt @@ -8,9 +8,17 @@ import com.intellij.util.PlatformUtils.isCommunityEdition class PyCharmWhatsNewInVisionContentProvider : WhatsNewInVisionContentProvider() { + override fun getResourceNameByPath(path: String): String { + return "whatsNew/$path" + } + + override fun getResource(resourceName: String): ContentSource { + return ResourceContentSource(PyCharmWhatsNewInVisionContentProvider::class.java.classLoader, resourceName) + } + override fun getResource(): ContentSource { // return a vision file for the current version - val resourceName = if (isCommunityEdition()) "whatsNew/pycharmCE2024.2.json" else "whatsNew/pycharm2024.2.json" + val resourceName = if (isCommunityEdition()) "whatsNew/pycharmCE2025.2.json" else "whatsNew/pycharm2025.2.json" val resourceContentSource = ResourceContentSource(PyCharmWhatsNewInVisionContentProvider::class.java.classLoader, resourceName) return resourceContentSource }