Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Templates are marked as "No reference to definition." even when subfields of other data structures reference template subfields. #320

Open
BotanyBayDon1 opened this issue Aug 23, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@BotanyBayDon1
Copy link

BotanyBayDon1 commented Aug 23, 2024

Describe the bug
Templates are marked as "No reference to definition." even when subfields of other data structures reference template subfields.

To Reproduce
In RPGLE, create a source member with an externally defined and qualified template data structure.
Ex:

Dcl-DS tmpDS extname('TABLENAME') qualified template END-DS;

Create a separate data structure that references columns within the template to define it's subfields.
Ex:

Dcl-DS dsExample qualified inz;
 Field1 like(tmpDS.Field1) inz;
 Field2 like(tmpDS.Field2) inz;
END-DS

Expected behavior

VS-Code should NOT be marking the template data structure as "No reference to definition." as clearly the template is referenced via the subfields of the dsExample data structure shown above. I realize that the data structure name (standalone without the subfield references) isn't being referenced as "tmpDS" anywhere. However I would count the template as referenced by virtue of any of the subfields in the template being referenced, and that is clearly the situation here.

Screenshots
See example code given above

Environment (please complete the following information):

  • Extension version [using the latest Code for IBM i extension as of today's date, 8/22/2024]
  • IBM i OS version [7.5]

Additional context
This is NOT a high priority IMO. It is, however, a bit of an annoyance to me as I use templates frequently.

@worksofliam worksofliam self-assigned this Aug 23, 2024
@worksofliam worksofliam transferred this issue from codefori/vscode-ibmi Aug 23, 2024
@worksofliam worksofliam added the bug Something isn't working label Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants