Community
Participate
Working Groups
In Variables view's context menu, the Enable/Disable actions do not properly update their enablement after running. E.g., for any given variable selection, selecting "Enable" does not disable the Enable action and enable the Disable action, and vice-versa. The actions are properly updated only when selection is explicitly changed. It appears that EnableVariablesActionDelegate attempts to set the current selection into the view, which does not fire a selection changed event in an AsynchronousViewer. Thus the action (and its logical opposite) are not updated. Ideally, the Enable action would update both itself and the corresponding Disable action after running instead of forcing a selection changed event. However, since there is no good way to associate two related instances of contributed action delegates at runtime, perhaps this functionality should be refactored to use a single toggle action rather than a pair of simple actions with alternating enablement.