Skip to content

Commit 0fbb788

Browse files
Fix structure view panel (issue introduced after PSI structure change)
1 parent b90ff9c commit 0fbb788

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/main/java/io/protostuff/jetbrains/plugin/view/structure/ProtoFieldsNodeProvider.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,7 @@ public Collection<TreeElement> provideNodes(@NotNull TreeElement parent) {
6565
AbstractTreeElement element = (AbstractTreeElement) parent;
6666
PsiElement psiElement = element.getValue();
6767
List<TreeElement> treeElements = new ArrayList<>();
68-
for (PsiElement childBlock : psiElement.getChildren()) {
69-
// first and the only child
70-
PsiElement node = childBlock.getFirstChild();
68+
for (PsiElement node : psiElement.getChildren()) {
7169
if (node instanceof FieldNode) {
7270
treeElements.add(new MessageFieldTreeElement((FieldNode) node));
7371
}

0 commit comments

Comments
 (0)