File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -373,10 +373,9 @@ namespace ts.server {
373
373
return perProjectResults ;
374
374
}
375
375
376
- // We need to de-duplicate and aggregate the results by choosing an authoritative version
377
- // of each definition and merging references from all the projects where they appear.
378
-
379
- const results : ReferencedSymbol [ ] = [ ] ;
376
+ // `isDefinition` is only (definitely) correct in `defaultProject` because we might
377
+ // have started the other project searches from related symbols. Propagate the
378
+ // correct results to all other projects.
380
379
381
380
const defaultProjectResults = perProjectResults . get ( defaultProject ) ! ;
382
381
if ( defaultProjectResults [ 0 ] . references [ 0 ] . isDefinition === undefined ) {
@@ -426,7 +425,10 @@ namespace ts.server {
426
425
} ) ;
427
426
}
428
427
429
- // TODO (acasey): skip this aggregation when simplifying results?
428
+ // We need to de-duplicate and aggregate the results by choosing an authoritative version
429
+ // of each definition and merging references from all the projects where they appear.
430
+
431
+ const results : ReferencedSymbol [ ] = [ ] ;
430
432
431
433
perProjectResults . forEach ( ( projectResults , project ) => {
432
434
for ( const referencedSymbol of projectResults ) {
You can’t perform that action at this time.
0 commit comments