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

provide amount of references in the variable/procedure hover #354

Open
GitMensch opened this issue Aug 20, 2024 · 0 comments
Open

provide amount of references in the variable/procedure hover #354

GitMensch opened this issue Aug 20, 2024 · 0 comments

Comments

@GitMensch
Copy link
Contributor

GitMensch commented Aug 20, 2024

While #340 is not yet released and the README wasn't update to include it, I expect to see the number of references as codeLens in the definition - at least if this definition/use is in the same file.

If there's a variable (or procedure) defined in a copybook, this will likely be not available "directly".

I suggest to add the number of references also in the hover over a variable/procedure - this allows a programmer to quickly see which effect the use of that may have. If that is possible, then it would be nice for variables to see also the kind of references, something like "references: 12" for procedures and "references: 4 target, 3 source".

I guess that the LSP has that information (otherwise cobc -t $tmp/prog.lst -Xref would have that).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant