Skip to content

Commit

Permalink
only add menu contribution when having call hierarchy providers, #104727
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieken committed Aug 19, 2020
1 parent 45f3c72 commit fa4ee50
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,11 @@ registerAction2(class extends EditorAction2 {
menu: {
id: MenuId.EditorContextPeek,
group: 'navigation',
order: 1000
order: 1000,
when: ContextKeyExpr.and(
_ctxHasCallHierarchyProvider,
PeekContext.notInPeekEditor
),
},
keybinding: {
when: EditorContextKeys.editorTextFocus,
Expand Down

0 comments on commit fa4ee50

Please sign in to comment.