From b187a0abddc46d6a3c84fb79e3f6d3e24a76bcf7 Mon Sep 17 00:00:00 2001 From: Jason Freeman Date: Tue, 14 Oct 2014 11:23:36 -0700 Subject: [PATCH] Comment examples of when findListItemInfo can return undefined --- src/services/signatureHelp.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/services/signatureHelp.ts b/src/services/signatureHelp.ts index 76e17b91311..a93cf2c276e 100644 --- a/src/services/signatureHelp.ts +++ b/src/services/signatureHelp.ts @@ -227,7 +227,11 @@ module ts.SignatureHelp { } // findListItemInfo can return undefined if we are not in parent's argument list - // or type argument list. + // or type argument list. This includes cases where the cursor is: + // - To the right of the closing paren + // - Between the type arguments and the arguments (greater than token) + // - On the target of the call (parent.func) + // - On the 'new' keyword in a 'new' expression return findListItemInfo(node); }