vscode-rpgle
vscode-rpgle copied to clipboard
Content Assist sometimes not Picking up local workfields
Here is an exmaple of it not picking up the local workfield.
Another thing i noticed, linter picks up that it has not been references
@Wikus86 I have tried recreating this with no luck.
Are you able to paste your code (not take a screenshot of it) so I can copy and paste it directly?
Thanks, Liam
Yeah, I can also not reproduce it, only happens in some programs. Let me try doing a debug on the program giving the issue. Will advise if I find something
I found something, looks like it gets confused with a procedure in my copybook.
This is an example of the code
in completionItem.ts, in the completionItemProvider function, it picks up i am on line 318 which is almost correct, actually on line 319
Then it tries to find the procedure based on the line number
The problem is, in my copy book I have a procedure in that line range
and the index is before the actual procedure I am in
I hope this makes a bit of sense :)