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

[Feature Request]: show instantiations for records/classes as well functions in CLS #25047

Open
jabraham17 opened this issue May 14, 2024 · 0 comments
Labels
area: Python bindings For things related to chapel-py, chpl-language-server, chplcheck, etc. area: Tools type: Feature Request

Comments

@jabraham17
Copy link
Member

Summary of Feature

Description:
When CLS is using --resolver, it can show functions with several code lenses to see the various instantiations of a function. (See screenshot)
Screenshot 2024-05-14 at 4 21 32 PM

It would be great if we could also have this for user defined generic types from records and classes. This would allow users to inspect the genericness of their types. In the above example, record R could have methods that change behavior with different types that can be hard to see, this editor support would improve that.

Code Sample

// this is the code for the above image
record R { type t = int; }

proc foo(type t, param p = 1) param do
  return t == int && p == 2;

foo(R(real), 2);
foo(R);
foo(R(?));
foo(int, p=3);
@jabraham17 jabraham17 added type: Feature Request area: Tools area: Python bindings For things related to chapel-py, chpl-language-server, chplcheck, etc. labels May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Python bindings For things related to chapel-py, chpl-language-server, chplcheck, etc. area: Tools type: Feature Request
Projects
None yet
Development

No branches or pull requests

1 participant