[pycharm] PY-64403 add vision file to PyCharm

GitOrigin-RevId: 7b3fd4492e0cebb313626c7a1b52e369e0577279
This commit is contained in:
Vladimir Koshelev
2024-07-05 16:54:45 +02:00
committed by intellij-monorepo-bot
parent 8595cefae1
commit b7700aaf66
4 changed files with 20 additions and 0 deletions

View File

@@ -2,6 +2,7 @@
<!--Customization code for both Community and Pro PyCharms-->
<dependencies>
<plugin id="PythonCore"/>
<module name="intellij.platform.whatsNew" />
</dependencies>
<projectListeners>
@@ -62,6 +63,10 @@
<applicationService serviceInterface="com.jetbrains.python.run.PyCommonFragmentsBuilder"
serviceImplementation="com.intellij.pycharm.community.ide.impl.PyIdeCommonFragmentsBuilder"/>
<applicationService serviceInterface="com.intellij.platform.whatsNew.WhatsNewInVisionContentProvider"
serviceImplementation="com.intellij.pycharm.community.ide.impl.whatsnew.PyCharmWhatsNewInVisionContentProvider"
overrides="true"/>
<directoryIndexExcludePolicy implementation="com.intellij.pycharm.community.ide.impl.PyDirectoryIndexExcludePolicy"/>

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,13 @@
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.pycharm.community.ide.impl.whatsnew
import com.intellij.platform.whatsNew.ContentSource
import com.intellij.platform.whatsNew.ResourceContentSource
import com.intellij.platform.whatsNew.WhatsNewInVisionContentProvider
class PyCharmWhatsNewInVisionContentProvider : WhatsNewInVisionContentProvider() {
override fun getResource(): ContentSource {
// return a vision file for the current version
return ResourceContentSource(PyCharmWhatsNewInVisionContentProvider::class.java.classLoader, "whatsNew/pycharm2024.2.json")
}
}

View File

@@ -16,6 +16,7 @@
<module name="intellij.pycharm.community.ide.implTraining"/>
<module name="intellij.jupyter.core"/> <!-- Lang for notebooks preview -->
<module name="intellij.jupyter.viewOnly"/> <!-- notebooks preview itself-->
<module name="intellij.platform.whatsNew"/>
<module name="intellij.pycharm.community.ide.impl.promotion"/> <!-- mostly promo of Pro -->
</content>