-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
provideSignatureHelp doesn't seem to render anything despite being called and returning data #10665
Comments
I'll investigate |
Ok, the problem is that we spec When you return something like |
Aha; gotcha! I will change it over and give it a whirl today. Thank you! 😄 |
and for reference: microsoft/TypeScript#8168 |
By the way, I've implemented most of my providers this way and they all seemed to work, I presume this is something specific to signatures that the others don't do? |
You might just be lucky ;-) Often we only check if something is an array but not the array types... Tho there are plans to accept both - class instances and look-alike literals |
Btw, in some sample code in the issue you linked, you warn on bad stuff: } else {
// warn about everything else
console.warn('INVALID result from completion provider. expected CompletionItem-array or CompletionList but got:', value);
return;
} But for this one, you don't. If easy to add, a warning might make it easier for understand what's happening. |
I'm trying to implement a signatureHelpProvider (which I believe is the thing that gives me parameter hints when I type
(
or,
when calling a method/signature/etc.).My code seems to be called; I see "running" in the console whenever I type a
(
but nothing ever appears in the editor! Here's my code:There are no errors shown anywhere, but also no popup. I've tried 1-based indexes for
activeParameter
/activeSignature
but no difference.Any ideas what might be causing this or how I could debug further?
The text was updated successfully, but these errors were encountered: