提交 0c96de6d 编写于 作者: A Alex Dima

Avoid allocation

上级 9fdca2d5
......@@ -44,7 +44,7 @@ Registry.add(Extensions.WorkbenchActions, new class implements IWorkbenchActionR
KeybindingsRegistry.registerKeybindingRule({
id: descriptor.id,
weight: weight,
when: ContextKeyExpr.and(descriptor.keybindingContext, when),
when: (descriptor.keybindingContext || when ? ContextKeyExpr.and(descriptor.keybindingContext, when) : null),
primary: keybindings ? keybindings.primary : 0,
secondary: keybindings && keybindings.secondary,
win: keybindings && keybindings.win,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册