Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/services/findAllReferences.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1540,7 +1540,12 @@ export namespace Core {
break;
case ExportKind.Default:
// Search for a property access to '.default'. This can't be renamed.
indirectSearch = state.options.use === FindReferencesUse.Rename ? undefined : state.createSearch(exportLocation, exportSymbol, ImportExport.Export, { text: "default" });
if (state.options.use !== FindReferencesUse.Rename) {
const allSearchSymbols = [exportSymbol];
const defaultExportSymbol = exportInfo.exportingModuleSymbol.exports?.get(InternalSymbolName.Default);
if (defaultExportSymbol && exportSymbol !== defaultExportSymbol) allSearchSymbols.push(defaultExportSymbol);
indirectSearch = state.createSearch(exportLocation, exportSymbol, ImportExport.Export, { text: "default", allSearchSymbols });
}
break;
case ExportKind.ExportEquals:
break;
Expand Down
Loading