chapel icon indicating copy to clipboard operation
chapel copied to clipboard

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

Open jabraham17 opened this issue 9 months ago • 0 comments

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 avatar May 14 '24 23:05 jabraham17