-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Support signature help for partially-filled-in type arguments f<
#24138
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
Conversation
ad5441c
to
9e74450
Compare
9e74450
to
c6cc8e7
Compare
src/services/signatureHelp.ts
Outdated
argumentsSpan: createTextSpan(attributeSpanStart, attributeSpanEnd - attributeSpanStart), | ||
argumentIndex: 0, | ||
argumentCount: 1 | ||
}; | ||
} | ||
|
||
else if (isBinaryExpression(node.parent)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please use isPossiblyTypeArgumentPosition instead?
return undefined; | ||
function getCandidateInfo(argumentInfo: ArgumentListInfo, checker: TypeChecker): { readonly candidates: ReadonlyArray<Signature>, readonly resolvedSignature: Signature } | undefined { | ||
const { invocation } = argumentInfo; | ||
if (invocation.kind === InvocationKind.Call) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what about new expressions?
I've added should be in the next insiders build |
b089cdb
to
208076a
Compare
Don't know why VSTS isn't running tests. |
Supports signature help at
f<
,f<T,
f<T, U,
, etc.Required some reworking since we no longer always have a
CallLikeExpression
handy. We now no longer expose as much tocompletions.ts
, making it call a special functiongetArgumentInfoForCompletions
.