提交 58b5cd14 编写于 作者: J Johannes Rieken

it's ServiceAccessor not ctx, fixes #1599

上级 f82ea07c
...@@ -35,8 +35,8 @@ KeybindingsRegistry.registerCommandDesc({ ...@@ -35,8 +35,8 @@ KeybindingsRegistry.registerCommandDesc({
weight: KeybindingsRegistry.WEIGHT.workbenchContrib(), weight: KeybindingsRegistry.WEIGHT.workbenchContrib(),
context: [{ key: 'searchViewletVisible' }], context: [{ key: 'searchViewletVisible' }],
primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KEY_J, primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KEY_J,
handler: ctx => { handler: accessor => {
let viewletService = <IViewletService>ctx['viewletService']; let viewletService = accessor.get(IViewletService);
viewletService.openViewlet(VIEWLET_ID, true) viewletService.openViewlet(VIEWLET_ID, true)
.then(viewlet => (<any>viewlet).toggleFileTypes()); .then(viewlet => (<any>viewlet).toggleFileTypes());
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册