@@ -21,11 +21,6 @@ export interface ICommandAction {
2121 iconClass ?: string ;
2222}
2323
24- export interface IMenu extends IDisposable {
25- onDidChange : Event < IMenu > ;
26- getActions ( arg ?: any ) : [ string , MenuItemAction [ ] ] [ ] ;
27- }
28-
2924export interface IMenuItem {
3025 command : ICommandAction ;
3126 alt ?: ICommandAction ;
@@ -60,6 +55,11 @@ export class MenuId {
6055 }
6156}
6257
58+ export interface IMenu extends IDisposable {
59+ onDidChange : Event < IMenu > ;
60+ getActions ( arg ?: any ) : [ string , MenuItemAction [ ] ] [ ] ;
61+ }
62+
6363export const IMenuService = createDecorator < IMenuService > ( 'menuService' ) ;
6464
6565export interface IMenuService {
@@ -95,7 +95,7 @@ export const MenuRegistry: IMenuRegistry = new class {
9595 return this . commands [ id ] ;
9696 }
9797
98- appendMenuItem ( { id } : MenuId , item : IMenuItem ) : IDisposable {
98+ appendMenuItem ( { id } : MenuId , item : IMenuItem ) : IDisposable {
9999 let array = this . menuItems [ id ] ;
100100 if ( ! array ) {
101101 this . menuItems [ id ] = array = [ item ] ;
@@ -112,7 +112,7 @@ export const MenuRegistry: IMenuRegistry = new class {
112112 } ;
113113 }
114114
115- getMenuItems ( { id } : MenuId ) : IMenuItem [ ] {
115+ getMenuItems ( { id } : MenuId ) : IMenuItem [ ] {
116116 return this . menuItems [ id ] || [ ] ;
117117 }
118118} ;
@@ -204,4 +204,4 @@ export class SyncActionDescriptor {
204204 public get keybindingWeight ( ) : number {
205205 return this . _keybindingWeight ;
206206 }
207- }
207+ }
0 commit comments