Skip to content

Commit b187a0a

Browse files
committed
Comment examples of when findListItemInfo can return undefined
1 parent 4486c3b commit b187a0a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/services/signatureHelp.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,11 @@ module ts.SignatureHelp {
227227
}
228228

229229
// findListItemInfo can return undefined if we are not in parent's argument list
230-
// or type argument list.
230+
// or type argument list. This includes cases where the cursor is:
231+
// - To the right of the closing paren
232+
// - Between the type arguments and the arguments (greater than token)
233+
// - On the target of the call (parent.func)
234+
// - On the 'new' keyword in a 'new' expression
231235
return findListItemInfo(node);
232236
}
233237

0 commit comments

Comments
 (0)