You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Spring Data Queries] Show document highlights when the cursor is at query parameter AST node #1332
All Spring Data Query whether it is JPQL/HQL or a native SQL query support parameters coming from java code. Typically @Query annotates a method, then :1 or ?2 found in the query would stand for the first and second parameter of the Java method respectively. It's be useful to show the Java parameter and its usage in Java code once the cursor is at the parameter node (or perhaps when hovering the mouse over that node).
LSP has Document Highlights feature that we could try using for this scenario
Fixed with 0063608. Only highlights method parameter. These methods are inside an interface typically so no need to go through the method body. Works in VSCode but in Eclipse Java editor LSP support is required
Activity
BoykoAlex commentedon Aug 28, 2024
Fixed with 0063608. Only highlights method parameter. These methods are inside an interface typically so no need to go through the method body. Works in VSCode but in Eclipse Java editor LSP support is required
martinlippert commentedon Aug 28, 2024
@BoykoAlex Let's track the missing support in the Eclipse Java source editor as a separate issue.
martinlippert commentedon Aug 28, 2024
Feels like we should also cover additional cases as well. If you have a query string like:
we should highlight all occurrences of
ownerwhen you have the cursor inside of of the occurrences.