File tree 2 files changed +17
-2
lines changed 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -3204,6 +3204,12 @@ namespace ts {
3204
3204
return false ;
3205
3205
}
3206
3206
3207
+ /**
3208
+ * Aggregates relevant symbols for completion in object literals and object binding patterns.
3209
+ * Relevant symbols are stored in the captured 'symbols' variable.
3210
+ *
3211
+ * @returns true if 'symbols' was successfully populated; false otherwise.
3212
+ */
3207
3213
function tryGetObjectLikeCompletionSymbols ( objectLikeContainer : ObjectLiteralExpression | BindingPattern ) : boolean {
3208
3214
// We're looking up possible property names from contextual/inferred/declared type.
3209
3215
isMemberCompletion = true ;
@@ -3242,6 +3248,15 @@ namespace ts {
3242
3248
return true ;
3243
3249
}
3244
3250
3251
+ /**
3252
+ * Aggregates relevant symbols for completion in import clauses; for instance,
3253
+ *
3254
+ * import { $ } from "moduleName";
3255
+ *
3256
+ * Relevant symbols are stored in the captured 'symbols' variable.
3257
+ *
3258
+ * @returns true if 'symbols' was successfully populated; false otherwise.
3259
+ */
3245
3260
function tryGetImportClauseCompletionSymbols ( importClause : ImportClause ) : boolean {
3246
3261
// cursor is in import clause
3247
3262
// try to show exported member for imported module
Original file line number Diff line number Diff line change 14
14
function verifyCompletionAtMarker ( marker : string , showBuilder : boolean , ...completions : string [ ] ) {
15
15
goTo . marker ( marker ) ;
16
16
if ( completions . length ) {
17
- for ( let i = 0 ; i < completions . length ; ++ i ) {
18
- verify . completionListContains ( completions [ i ] ) ;
17
+ for ( let completion of completions ) {
18
+ verify . completionListContains ( completion ) ;
19
19
}
20
20
}
21
21
else {
You can’t perform that action at this time.
0 commit comments