IBM / zopeneditor-about

IBM Z Open Editor: File issues here!
https://ibm.github.io/zopeneditor-about
Apache License 2.0
49 stars 21 forks source link

No code jumping/peek etc. when copybooks have .cbl extension on version above 1.0.3 #273

Open MikeDEVpl opened 1 year ago

MikeDEVpl commented 1 year ago

Development environment used

Problem Description

When both cobol programs and copybooks have an .cbl extension on any version above 1.0.3 code jumping/peek and other 'intelisense' features does not work. Probably cobol program is treated as copybook which does not have those functions.

This happens when I add my property groups configuration (exactly this config "zopeneditor.cobol.includeFileExtensions"):

"zopeneditor.propertygroups": [ { "name": "local-files", "type": "local", "syslib": [ "CPY", "DCL" ] }
], "zopeneditor.cobol.includeFileExtensions": [ ".CBL" ],

Detailed steps for reproducing the problem:

  1. Create two folders CPY & SRB on the same level
  2. Copy cobol program to SRB folder
  3. Copy copybook which is referenced by program from point 2 to CPY folder
  4. Add property groups configuration from above to settings.json
  5. Reload extension

Observed behavior

Expected behavior

phaumer commented 1 year ago

I will label this as an enhancement request while we research this, but I am not optimistic that we can support this. We need a different file extension for copybooks as also the parsing is different of copybooks versus programs. We need to be able to distinguish them.