File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,11 @@ namespace ts.FindAllReferences {
107
107
if ( namedBindings && namedBindings . kind === SyntaxKind . NamespaceImport ) {
108
108
handleNamespaceImport ( direct , namedBindings . name ) ;
109
109
}
110
+ else if ( isDefaultImport ( direct ) ) {
111
+ const sourceFileLike = getSourceFileLikeForImportDeclaration ( direct ) ;
112
+ addIndirectUser ( sourceFileLike ) ; // Add a check for indirect uses to handle synthetic default imports
113
+ directImports . push ( direct ) ;
114
+ }
110
115
else {
111
116
directImports . push ( direct ) ;
112
117
}
Original file line number Diff line number Diff line change
1
+ // @esModuleInterop : true
2
+
3
+ // @Filename : /abc.d.ts
4
+ ////declare module "a" {
5
+ //// export const [|x|]: number;
6
+ //// }
7
+
8
+ // @Filename : /b.ts
9
+ ////import * as a from "a";
10
+ ////a.[|x|];
11
+
12
+ verify . rangesReferenceEachOther ( ) ;
You can’t perform that action at this time.
0 commit comments