mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-19 10:41:56 -05:00
Use jsxFragmentFactory entity name for factory name lookup from checking fragments (#39475)
This commit is contained in:
@@ -968,6 +968,11 @@ namespace ts {
|
||||
return file.localJsxFragmentNamespace = getFirstIdentifier(file.localJsxFragmentFactory).escapedText;
|
||||
}
|
||||
}
|
||||
const entity = getJsxFragmentFactoryEntity(location);
|
||||
if (entity) {
|
||||
file.localJsxFragmentFactory = entity;
|
||||
return file.localJsxFragmentNamespace = getFirstIdentifier(entity).escapedText;
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (file.localJsxNamespace) {
|
||||
|
||||
Reference in New Issue
Block a user