Community
Participate
Working Groups
Items for context menus are created every time the menu is shown. As such, the support we have in PluginActionContribution item for listening to activity and identifier changes is a heavy. The activity state will never change while the context menu is shown so adding the listeners is a waste, particularly since doing so causes the lazy creation of the identifier listener list. We should bench the opening of a context menu and see how much time/memory is wasted in these unnecessary calls.
The items are more persistent in the new menu story and our behaviour makes sense there.