Skip to content

Commit

Permalink
[#393] add Open Declaration F3 to context menu (#434)
Browse files Browse the repository at this point in the history
fixes #393
  • Loading branch information
ghentschke authored Feb 20, 2025
1 parent 6dc0edb commit 60bdc11
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ SPDX-License-Identifier: EPL-2.0\n\
Commands.ToggleSourceAndHeader.name=Toggle Source/Header
PopupMenu.ToggleSourceAndHeader.label=Toggle Source/Header
Commands.OpenDeclaration=Open Declaration
Commands.OpenDeclaration.description=Open an editor on the selected elements declaration
Commands.Category.name=C/C++ Editor (LSP)
Commands.Category.name.description=Commands used by the clangd based C/C++ editor
PopupMenu.FindReferences.label=Find References
Expand Down
17 changes: 17 additions & 0 deletions bundles/org.eclipse.cdt.lsp.clangd/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,23 @@
</visibleWhen>
</command>
</menuContribution>
<menuContribution
locationURI="popup:#TextEditorContext?before=org.eclipse.lsp4e.openTypeHierarchy">
<command
commandId="org.eclipse.ui.edit.text.open.hyperlink"
label="%Commands.OpenDeclaration"
tooltip="%Commands.OpenDeclaration.description">
<visibleWhen
checkEnabled="false">
<with
variable="activeEditorId">
<equals
value="org.eclipse.cdt.lsp.CEditor">
</equals>
</with>
</visibleWhen>
</command>
</menuContribution>
</extension>
<extension
id="org.eclipse.cdt.lsp.clangd.config.marker"
Expand Down

0 comments on commit 60bdc11

Please sign in to comment.