Skip to content

Commit

Permalink
BndHover: show values in hover tooltip
Browse files Browse the repository at this point in the history
From this all instructions would benefit

Signed-off-by: Christoph Rueger <[email protected]>
  • Loading branch information
chrisrueger committed Oct 4, 2024
1 parent 2f4a7e0 commit ba16fdb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bndtools.core/src/bndtools/editor/completion/BndHover.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,12 @@ public String getHoverInfo(ITextViewer textViewer, IRegion hoverRegion) {
if (syntax != null) {

sb.append(syntax.getLead());
sb.append("\nE.g. ");
String values = syntax.getValues();
if (values != null && !values.isBlank()) {
sb.append("\nValues: ");
sb.append(syntax.getValues());
}
sb.append("\nExample: ");
sb.append(syntax.getExample());
}
Parameters decorated = properties.decorated(key);
Expand Down

0 comments on commit ba16fdb

Please sign in to comment.