@@ -7,7 +7,7 @@ import { Action } from 'vs/base/common/actions';
77import { SyncDescriptor0 , createSyncDescriptor } from 'vs/platform/instantiation/common/descriptors' ;
88import { IConstructorSignature2 , createDecorator , BrandedService , ServicesAccessor } from 'vs/platform/instantiation/common/instantiation' ;
99import { IKeybindings , KeybindingsRegistry , IKeybindingRule } from 'vs/platform/keybinding/common/keybindingsRegistry' ;
10- import { ContextKeyExpr , IContextKeyService } from 'vs/platform/contextkey/common/contextkey' ;
10+ import { ContextKeyExpr , IContextKeyService , ContextKeyExpression } from 'vs/platform/contextkey/common/contextkey' ;
1111import { ICommandService , CommandsRegistry , ICommandHandlerDescription } from 'vs/platform/commands/common/commands' ;
1212import { IDisposable , DisposableStore } from 'vs/base/common/lifecycle' ;
1313import { Event , Emitter } from 'vs/base/common/event' ;
@@ -25,24 +25,24 @@ export interface ICommandAction {
2525 title : string | ILocalizedString ;
2626 category ?: string | ILocalizedString ;
2727 icon ?: { dark ?: URI ; light ?: URI ; } | ThemeIcon ;
28- precondition ?: ContextKeyExpr ;
29- toggled ?: ContextKeyExpr ;
28+ precondition ?: ContextKeyExpression ;
29+ toggled ?: ContextKeyExpression ;
3030}
3131
3232export type ISerializableCommandAction = UriDto < ICommandAction > ;
3333
3434export interface IMenuItem {
3535 command : ICommandAction ;
3636 alt ?: ICommandAction ;
37- when ?: ContextKeyExpr ;
37+ when ?: ContextKeyExpression ;
3838 group ?: 'navigation' | string ;
3939 order ?: number ;
4040}
4141
4242export interface ISubmenuItem {
4343 title : string | ILocalizedString ;
4444 submenu : MenuId ;
45- when ?: ContextKeyExpr ;
45+ when ?: ContextKeyExpression ;
4646 group ?: 'navigation' | string ;
4747 order ?: number ;
4848}
@@ -314,17 +314,17 @@ export class SyncActionDescriptor {
314314 private readonly _id : string ;
315315 private readonly _label ?: string ;
316316 private readonly _keybindings : IKeybindings | undefined ;
317- private readonly _keybindingContext : ContextKeyExpr | undefined ;
317+ private readonly _keybindingContext : ContextKeyExpression | undefined ;
318318 private readonly _keybindingWeight : number | undefined ;
319319
320320 public static create < Services extends BrandedService [ ] > ( ctor : { new ( id : string , label : string , ...services : Services ) : Action } ,
321- id : string , label : string | undefined , keybindings ?: IKeybindings , keybindingContext ?: ContextKeyExpr , keybindingWeight ?: number
321+ id : string , label : string | undefined , keybindings ?: IKeybindings , keybindingContext ?: ContextKeyExpression , keybindingWeight ?: number
322322 ) : SyncActionDescriptor {
323323 return new SyncActionDescriptor ( ctor as IConstructorSignature2 < string , string | undefined , Action > , id , label , keybindings , keybindingContext , keybindingWeight ) ;
324324 }
325325
326326 private constructor ( ctor : IConstructorSignature2 < string , string | undefined , Action > ,
327- id : string , label : string | undefined , keybindings ?: IKeybindings , keybindingContext ?: ContextKeyExpr , keybindingWeight ?: number
327+ id : string , label : string | undefined , keybindings ?: IKeybindings , keybindingContext ?: ContextKeyExpression , keybindingWeight ?: number
328328 ) {
329329 this . _id = id ;
330330 this . _label = label ;
@@ -350,7 +350,7 @@ export class SyncActionDescriptor {
350350 return this . _keybindings ;
351351 }
352352
353- public get keybindingContext ( ) : ContextKeyExpr | undefined {
353+ public get keybindingContext ( ) : ContextKeyExpression | undefined {
354354 return this . _keybindingContext ;
355355 }
356356
0 commit comments