Got sig help working in tagged no-sub templates.

This commit is contained in:
Daniel Rosenwasser 2014-11-14 17:30:19 -08:00
parent 64960cf873
commit 6f8f79efe2

View File

@ -275,6 +275,9 @@ module ts.SignatureHelp {
};
}
}
else if (node.kind === SyntaxKind.NoSubstitutionTemplateLiteral && node.parent.kind === SyntaxKind.TaggedTemplateExpression) {
return getArgumentListInfoForTemplate(<TaggedTemplateExpression>node.parent, /*argumentIndex*/ 0);
}
else if (node.parent.kind === SyntaxKind.TemplateExpression && node.parent.parent.kind === SyntaxKind.TaggedTemplateExpression) {
Debug.assert(node.kind === SyntaxKind.TemplateHead, "Expected 'TemplateHead' as token.");