diff --git a/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.ts b/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.ts index c32da9ad7156b..32c4c2f8b7473 100644 --- a/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.ts +++ b/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.ts @@ -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,