[ExpUI] Register an iconMapper to override Python file type icon

Previously, the mapping file was put in a wrong place (not at the root of
a "resources" directory) and was not registered in any plugin descriptor.

However, under debug, the right icon was still displayed because pythonFile.svg
is also remapped in all-platform PlatformIconMappings.json. In actual installers
pythonFile.svg and PlatformIconMappings.json end up in different classloaders,
so this fallback doesn't work.

GitOrigin-RevId: ee361cd7d2d0158b0cc96bd652a5cb53bb7d88c5
This commit is contained in:
Mikhail Golubev
2022-07-05 14:40:31 +00:00
committed by intellij-monorepo-bot
parent 2c4f508c27
commit 5d16f5e090
2 changed files with 1 additions and 1 deletions
@@ -49,6 +49,7 @@
hashBangs="python"
implementationClass="com.jetbrains.python.PythonFileType"
fieldName="INSTANCE"/>
<iconMapper mappingFile="PythonPsiApiIconMappings.json"/>
<projectService serviceInterface="com.jetbrains.python.psi.types.TypeEvalContextCache"
serviceImplementation="com.jetbrains.python.psi.types.TypeEvalContextCacheImpl"/>
</extensions>
@@ -5,7 +5,6 @@
"python": {
"expui": {
"python.svg": "icons/com/jetbrains/python/pythonFile.svg"
}
}
}