The VS Code Outline view displays a representation of the structure of a program, with sorting options.
Regarding copybooks, this view only displays the reference to the copybooks, but no information carried by the copybooks.
However, the COBOL Language Server seems to know these informations because it displays them when hovering with the mouse.
We would like the Outline view to display certain information contained in the copybooks, at a minimum:
paragraph and section names
levels 01 in data descriptions
This in a “resolved” way:
with replacing actions applied
with application of conditional compilation applied
If this could also be done with copybook cascade calls it would be a big plus...
Illustration with our “smart” development framework:
the program perform a LIRE-DM routine (read DM resource)
the program include the AAAPACCE copybook for generalized management of external resources access, (file, Db2 table, etc.)
this copybook include other specialized copybooks depending on the context, and this on several levels of include
the code for the LIRE-DM routine (Section) is found in one of the included copybooks, AAA5LSRU, which itself perform the LIRE-DM-PHYSIQUE routine, in AAA5LSF0 copybook
Having all these Sections / Paragraphs displayed in the Outline view would help in understanding the code workflow of the program, and help to identify these Sections / Paragraphs.
In actual use case below, the name of the copybook appears on the right side of the screen hardcopies.
Program (application level):
Informations in Outline view:
Copybooks (framework level):
Choice of logical acces, dependant of access type, (Read, Write...):
Choice of logical access, dependant of acces mode (Sequential, random, dynamic):
Choice of logical access, dependant of events driving:
Logical access, independant of resource organization:
Choice of physical access, dependant of resource oganization:
Physical access, dependant of resource organization:
Description of the enhancement requested
The VS Code Outline view displays a representation of the structure of a program, with sorting options. Regarding copybooks, this view only displays the reference to the copybooks, but no information carried by the copybooks. However, the COBOL Language Server seems to know these informations because it displays them when hovering with the mouse.
We would like the Outline view to display certain information contained in the copybooks, at a minimum:
This in a “resolved” way:
If this could also be done with copybook cascade calls it would be a big plus...
Illustration with our “smart” development framework:
LIRE-DM
routine (read DM resource)AAAPACCE
copybook for generalized management of external resources access, (file, Db2 table, etc.)LIRE-DM
routine (Section) is found in one of the included copybooks,AAA5LSRU
, which itself perform theLIRE-DM-PHYSIQUE
routine, inAAA5LSF0
copybookHaving all these Sections / Paragraphs displayed in the Outline view would help in understanding the code workflow of the program, and help to identify these Sections / Paragraphs.
In actual use case below, the name of the copybook appears on the right side of the screen hardcopies.