未验证 提交 92cfbd35 编写于 作者: J Johannes Rieken 提交者: GitHub

Merge pull request #104977 from microsoft/joh/fix104727

only add menu contribution when having call hierarchy provider
...@@ -178,7 +178,11 @@ registerAction2(class extends EditorAction2 { ...@@ -178,7 +178,11 @@ registerAction2(class extends EditorAction2 {
menu: { menu: {
id: MenuId.EditorContextPeek, id: MenuId.EditorContextPeek,
group: 'navigation', group: 'navigation',
order: 1000 order: 1000,
when: ContextKeyExpr.and(
_ctxHasCallHierarchyProvider,
PeekContext.notInPeekEditor
),
}, },
keybinding: { keybinding: {
when: EditorContextKeys.editorTextFocus, when: EditorContextKeys.editorTextFocus,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册