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

Can't see what parameters are expected for a constructor #235

Closed
sethladd opened this issue Dec 14, 2016 · 3 comments
Closed

Can't see what parameters are expected for a constructor #235

sethladd opened this issue Dec 14, 2016 · 3 comments

Comments

@sethladd
Copy link

I code-completed a constructor, and here's what I got:

screen shot 2016-12-14 at 1 38 53 pm

I'd like instead to see a list of parameters and their types so I know what I need to put into this constructor.

Thanks!

@sethladd
Copy link
Author

Some ideas for how this might work are: https://msdn.microsoft.com/en-us/library/hcw1s69b.aspx

@DanTup
Copy link
Member

DanTup commented Dec 14, 2016

That link is for fat VS, Code one is here. Unfortunately the problem here isn't the Code side though, it's the Dart analyzer - currently there's no easy way to get the data required to build this (see dart-lang/sdk#27034 and related discussion). I did have a look at if I could use getHover but it turned out to be complicated for me to get to the function/constructor offset from where the cursor was.

I was going to have a go at implementing it, but I was never able to get the analysis server building properly on my machine (seemed to involve building the entire SDK and became more effort than I had time for).

We added a setting for inserting placeholders as a stop-gap; though not sure why it's not worked for you (I thought it was on by default).

@DanTup
Copy link
Member

DanTup commented Dec 14, 2016

So I think this is a dupe of #15; shout if you disagree!

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

No branches or pull requests

2 participants