Create SignatureHelpParameters
This commit is contained in:
parent
5e1bd0c5bf
commit
f28e931f78
1 changed files with 4 additions and 1 deletions
|
@ -3551,7 +3551,10 @@ module ts {
|
|||
|
||||
function getSignatureHelpItemsFromCandidateInfo(candidates: Signature[], bestSignature: Signature, argumentListOrTypeArgumentList: Node): SignatureHelpItems {
|
||||
var items = map(candidates, candidateSignature => {
|
||||
return new SignatureHelpItem(false, "", "", "", new Array<SignatureHelpParameter>(candidateSignature.parameters.length), "");
|
||||
var parameterHelpItems = candidateSignature.parameters.length === 0 ? emptyArray : map(candidateSignature.parameters, p => {
|
||||
return new SignatureHelpParameter(p.name, "", "", false);
|
||||
});
|
||||
return new SignatureHelpItem(false, "", "", "", parameterHelpItems, "");
|
||||
});
|
||||
var selectedItemIndex = candidates.indexOf(bestSignature);
|
||||
if (selectedItemIndex < 0) {
|
||||
|
|
Loading…
Reference in a new issue