spgennard/vscode_cobol

group items in lower levels are not recognized as group items

GitMensch opened this issue · 1 comments

Describe the bug
Sub-Items don't have the correct parents, table items no visible attribute

To Reproduce
Steps to reproduce the behavior:

  1. Save the following copybook:
       01  GRP-1.
           03 GRP-1-RECORDS.
             05 GRP-1-REC           OCCURS 700.
               10 GRP-1-ID       PIC  X(18).
               10 GRP-1-TIME     PIC  X(26).
               10 GRP-1-REF      PIC  9(18) COMP-5.
           03 GRP-1-UPDATE       PIC  X(26).
  1. Check outline/breadcrumbs (hierarchy)

Expected behavior
GRP-1-REC should be shown as "below GRP-1-RECORDS" (which itself should be shown below GRP-1) and with a different type, I'd suggest the SymbolKind "Array".

Screenshots
code, outline, hierarchy

Additional context
Issues shows in 7.8.19, but also back in 7.1.1

This is expected/designed behaviour as the source code is not parsed but is scanned just enough to get the data names from the source.

I have experimented doing more in-depth scanning but the performance hit was not acceptable and defeated the general purpose which is to have an "outline view" rather than a "hierarchical view".