File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -4164,12 +4164,15 @@ namespace ts {
4164
4164
4165
4165
const argumentInfo = SignatureHelp . getContainingArgumentInfo ( node , position , sourceFile ) ;
4166
4166
if ( argumentInfo ) {
4167
+ // Get string literal completions from specialized signatures of the target
4167
4168
return getStringLiteralCompletionEntriesFromCallExpression ( argumentInfo ) ;
4168
4169
}
4169
4170
else if ( isElementAccessExpression ( node . parent ) && node . parent . argumentExpression === node ) {
4171
+ // Get all names of properties on the expression
4170
4172
return getStringLiteralCompletionEntriesFromElementAccess ( node . parent ) ;
4171
4173
}
4172
4174
else {
4175
+ // Otherwise, get the completions from the contextual type if one exists
4173
4176
return getStringLiteralCompletionEntriesFromContextualType ( < StringLiteral > node ) ;
4174
4177
}
4175
4178
}
You can’t perform that action at this time.
0 commit comments