Skip to content

Commit 92cfbd3

Browse files
authored
Merge pull request #104977 from microsoft/joh/fix104727
only add menu contribution when having call hierarchy provider
2 parents 45f3c72 + fa4ee50 commit 92cfbd3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,11 @@ registerAction2(class extends EditorAction2 {
178178
menu: {
179179
id: MenuId.EditorContextPeek,
180180
group: 'navigation',
181-
order: 1000
181+
order: 1000,
182+
when: ContextKeyExpr.and(
183+
_ctxHasCallHierarchyProvider,
184+
PeekContext.notInPeekEditor
185+
),
182186
},
183187
keybinding: {
184188
when: EditorContextKeys.editorTextFocus,

0 commit comments

Comments
 (0)