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
Copy file name to clipboardExpand all lines: headless-services/commons/commons-yaml/src/main/java/org/springframework/ide/vscode/commons/yaml/ast/YamlParser.java
Copy file name to clipboardExpand all lines: headless-services/commons/commons-yaml/src/main/java/org/springframework/ide/vscode/commons/yaml/reconcile/SchemaBasedYamlASTReconciler.java
Copy file name to clipboardExpand all lines: headless-services/commons/commons-yaml/src/main/java/org/springframework/ide/vscode/commons/yaml/reconcile/TypeBasedYamlHierarchicalSymbolHandler.java
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -76,7 +76,8 @@ public DocumentSymbol createSymbol(YamlFileAST currentAst, Node node, YType type
76
76
IDocumentdoc = currentAst.getDocument();
77
77
if (namePath!=null) {
78
78
NodenameNode = namePath.traverseNode(node);
79
-
if (nameNode!=null) {
79
+
// VSCode throws for DocumentSymbols having null or empty name hence do not create the symbol
80
+
if (nameNode!=null && !NodeUtil.asScalar(nameNode).isEmpty()) {
Copy file name to clipboardExpand all lines: headless-services/concourse-language-server/src/test/java/org/springframework/ide/vscode/concourse/ConcourseEditorTest.java
0 commit comments