IJPL-172075 Fix custom external action icons

The problem with using getActionOrStub as the action supplier
to get the custom icon is that if the action isn't loaded yet,
then its stub will have a null icon. Therefore, customization
doesn't work.

Performance considerations: it shouldn't cause any serious
performance issues unless there are very many icon customizations,
which is normally not the case.


(cherry picked from commit 4fa084bdcaebe8e06dc26f4004a6eeac33dd36a1)

IJ-CR-152585

GitOrigin-RevId: ea864f92b2f1b745e62cf8497ddf8c3af01cd467
This commit is contained in:
Sergei Tachenov
2025-01-08 17:42:42 +02:00
committed by intellij-monorepo-bot
parent 82f14358db
commit 4aaddd0702

View File

@@ -449,7 +449,7 @@ class CustomActionsSchema(private val coroutineScope: CoroutineScope?) : Persist
continue
}
initActionIcon(anAction = action, actionId = actionId, actionSupplier = { actionManager.getActionOrStub(it) })
initActionIcon(anAction = action, actionId = actionId, actionSupplier = { actionManager.getAction(it) })
PresentationFactory.updatePresentation(action)
}
}