Skip to content

Commit 85ee869

Browse files
authored
fix: add visibleWhen to find references menu entry (#289)
otherwise to 'Find Refernces' entries were made in the generic editor context menu.
1 parent 5994844 commit 85ee869

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

bundles/org.eclipse.cdt.lsp.clangd/plugin.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,15 @@
116116
commandId="org.eclipse.ui.genericeditor.findReferences"
117117
label="%PopupMenu.FindReferences.label"
118118
style="push">
119+
<visibleWhen
120+
checkEnabled="false">
121+
<with
122+
variable="activeEditorId">
123+
<equals
124+
value="org.eclipse.cdt.lsp.CEditor">
125+
</equals>
126+
</with>
127+
</visibleWhen>
119128
</command>
120129
</menuContribution>
121130
</extension>

0 commit comments

Comments
 (0)