Skip to content

Commit be64f62

Browse files
committed
Doc symbol empty name becomes space
1 parent dbd9dcb commit be64f62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

headless-services/commons/commons-yaml/src/main/java/org/springframework/ide/vscode/commons/yaml/reconcile/TypeBasedYamlSymbolHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ protected DocumentSymbol createSymbol(TextDocument doc, Node node, YType type) t
8888
Range range = doc.toRange(region.getStart(), region.getLength());
8989

9090
DocumentSymbol symbol = new DocumentSymbol();
91-
symbol.setName(region.toString());
91+
symbol.setName(region.toString().isEmpty() ? " " : region.toString());
9292
symbol.setKind(symbolKind(type));
9393
symbol.setRange(range);
9494
symbol.setSelectionRange(range);

0 commit comments

Comments
 (0)