Skip to content

Commit

Permalink
Merge pull request #104977 from microsoft/joh/fix104727
Browse files Browse the repository at this point in the history
only add menu contribution when having call hierarchy provider
  • Loading branch information
jrieken authored Aug 19, 2020
2 parents 45f3c72 + fa4ee50 commit 92cfbd3
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 92cfbd3

Please sign in to comment.