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 d1f8f9b commit 5e54421
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 5e54421

Please sign in to comment.