提交 99e76fc8 编写于 作者: J Johannes Rieken

enable goto definition when peek is showing

上级 72621a72
......@@ -301,7 +301,7 @@ function withController(accessor: ServicesAccessor, fn: (controller: ReferencesC
KeybindingsRegistry.registerCommandAndKeybindingRule({
id: 'changePeekFocus',
weight: KeybindingWeight.WorkbenchContrib + 50,
weight: KeybindingWeight.EditorContrib,
primary: KeyChord(KeyMod.CtrlCmd | KeyCode.KEY_K, KeyCode.F2),
when: ContextKeyExpr.or(ctxReferenceSearchVisible, PeekContext.inPeekEditor),
handler(accessor) {
......@@ -313,7 +313,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
KeybindingsRegistry.registerCommandAndKeybindingRule({
id: 'goToNextReference',
weight: KeybindingWeight.WorkbenchContrib + 50,
weight: KeybindingWeight.EditorContrib - 10,
primary: KeyCode.F4,
secondary: [KeyCode.F12],
when: ContextKeyExpr.or(ctxReferenceSearchVisible, PeekContext.inPeekEditor),
......@@ -326,7 +326,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
KeybindingsRegistry.registerCommandAndKeybindingRule({
id: 'goToPreviousReference',
weight: KeybindingWeight.WorkbenchContrib + 50,
weight: KeybindingWeight.EditorContrib - 10,
primary: KeyMod.Shift | KeyCode.F4,
secondary: [KeyMod.Shift | KeyCode.F12],
when: ContextKeyExpr.or(ctxReferenceSearchVisible, PeekContext.inPeekEditor),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册