Repository navigation
fix: give LSP Reference(s) no shortcut of its own, as Ctrl+Alt+H is Call Hierarchy - #2045
Merged
lagergren merged 2 commits intoNov 20, 2026
Conversation
…all Hierarchy Fixes redhat-developer#801. *LSP Reference(s)* had `Ctrl+Alt+H` in the default keymap, the shortcut of IntelliJ's Call Hierarchy, which LSP4IJ supports and whose docs say to press `Ctrl+Alt+H`. So with a language server that has call hierarchy, the shortcut no longer found the references. The action keeps its menus, `Navigate / LSP Reference(s)` and `Go To / LSP Reference(s)`, and gets no shortcut: one can be assigned in `Settings / Keymap`, and Find Usages (`Alt+F7`) shows the references too. The docs of the references say so. Not changed here, for a decision: two more actions of LSP4IJ share their shortcut with an action of IntelliJ in the default keymap. `Ctrl+Alt+Z` of *LSP Declaration* is also Rollback Lines, and the revert and reset of the Changes view and of Git staging; `Ctrl+Alt+E` of *LSP Type Definition* is also Toggle Find in Selection in the Find bar, the history of a console, and Perforce's Edit. Test: `LSPActionShortcutsTest` checks that no action of LSP4IJ takes a shortcut of another action in the default keymap, apart from those two. Without the change, it fails with *LSP Reference(s)* and Call Hierarchy.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2045 +/- ##
==========================================
- Coverage 49.44% 49.42% -0.03%
==========================================
Files 813 813
Lines 33324 33324
Branches 5191 6848 +1657
==========================================
- Hits 16478 16470 -8
- Misses 14272 14279 +7
- Partials 2574 2575 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Collaborator
Author
|
@coderabbitai review |
Action performed
|
… IntelliJ only The check against every action of the default keymap failed on IntelliJ IDEA 2026.3, where Ctrl+Alt+G of LSP Implementation(s) is also the SQL Generator of the Database view. Such actions use the same keys in views of their own, and depend on the product and its plugins. The test now checks the navigation actions of IntelliJ that LSP4IJ supports for language servers too, as Call Hierarchy, and still fails without the fix of redhat-developer#801.
This was referenced Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #801.
LSP Reference(s) had
Ctrl+Alt+Hin the default keymap, the shortcutof IntelliJ's Call Hierarchy, which LSP4IJ supports and whose docs say to
press
Ctrl+Alt+H. So with a language server that has call hierarchy,the shortcut no longer found the references. The action keeps its menus,
Navigate / LSP Reference(s)andGo To / LSP Reference(s), and getsno shortcut: one can be assigned in
Settings / Keymap, and Find Usages(
Alt+F7) shows the references too. The docs of the references say so.Not changed here, for a decision: three more actions of LSP4IJ share their
shortcut with an action of IntelliJ in the default keymap, which uses it in
a view of its own.
Ctrl+Alt+Zof LSP Declaration(s) is also RollbackLines, and the revert and reset of the Changes view and of Git staging;
Ctrl+Alt+Eof LSP Type Definition(s) is also Toggle Find in Selectionin the Find bar, the history of a console, and Perforce's Edit; and in
IntelliJ IDEA 2026.3,
Ctrl+Alt+Gof LSP Implementation(s) is also theSQL Generator of the Database view.
Test:
LSPActionShortcutsTestchecks that no action of LSP4IJ takes theshortcut of a navigation action of IntelliJ in the default keymap, as
Call Hierarchy, Find Usages or Go to Declaration. Without the change, it
fails with LSP Reference(s) and Call Hierarchy. It passes on 2024.2 and
on IntelliJ IDEA 2026.3.