@@ -12,7 +12,7 @@ import { IdGenerator } from 'vs/base/common/idGenerator';
1212import { IDisposable , toDisposable , MutableDisposable , DisposableStore } from 'vs/base/common/lifecycle' ;
1313import { isLinux , isWindows } from 'vs/base/common/platform' ;
1414import { localize } from 'vs/nls' ;
15- import { IMenu , IMenuActionOptions , MenuItemAction , SubmenuItemAction , Icon } from 'vs/platform/actions/common/actions' ;
15+ import { ICommandAction , IMenu , IMenuActionOptions , MenuItemAction , SubmenuItemAction , Icon } from 'vs/platform/actions/common/actions' ;
1616import { IContextMenuService } from 'vs/platform/contextview/browser/contextView' ;
1717import { IKeybindingService } from 'vs/platform/keybinding/common/keybinding' ;
1818import { INotificationService } from 'vs/platform/notification/common/notification' ;
@@ -171,7 +171,7 @@ export class MenuEntryActionViewItem extends ActionViewItem {
171171 render ( container : HTMLElement ) : void {
172172 super . render ( container ) ;
173173
174- this . _updateItemClass ( this . _action ) ;
174+ this . _updateItemClass ( this . _action . item ) ;
175175
176176 let mouseOver = false ;
177177
@@ -227,18 +227,18 @@ export class MenuEntryActionViewItem extends ActionViewItem {
227227 if ( this . options . icon ) {
228228 if ( this . _commandAction !== this . _action ) {
229229 if ( this . _action . alt ) {
230- this . _updateItemClass ( this . _action . alt ) ;
230+ this . _updateItemClass ( this . _action . alt . item ) ;
231231 }
232232 } else if ( ( < MenuItemAction > this . _action ) . alt ) {
233- this . _updateItemClass ( this . _action ) ;
233+ this . _updateItemClass ( this . _action . item ) ;
234234 }
235235 }
236236 }
237237
238- _updateItemClass ( item : MenuItemAction ) : void {
238+ _updateItemClass ( item : ICommandAction ) : void {
239239 this . _itemClassDispose . value = undefined ;
240240
241- const icon = item . checked && ( item . item . toggled as { icon ?: Icon } ) ?. icon ? ( item . item . toggled as { icon : Icon } ) . icon : item . item . icon ;
241+ const icon = this . _commandAction . checked && ( item . toggled as { icon ?: Icon } ) ?. icon ? ( item . toggled as { icon : Icon } ) . icon : item . icon ;
242242
243243 if ( ThemeIcon . isThemeIcon ( icon ) ) {
244244 // theme icons
0 commit comments