We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ccb9d5e commit ee5b933Copy full SHA for ee5b933
src/services/codefixes/helpers.ts
@@ -905,8 +905,8 @@ export function tryGetAutoImportableReferenceFromTypeNode(importTypeNode: TypeNo
905
// it can't refer to reserved internal symbol names and such
906
return visitEachChild(node, visit, /*context*/ undefined);
907
}
908
- const name = firstIdentifier.symbol && getNameForExportedSymbol(firstIdentifier.symbol, scriptTarget);
909
- const qualifier = name && name !== firstIdentifier.text
+ const name = getNameForExportedSymbol(firstIdentifier.symbol, scriptTarget);
+ const qualifier = name !== firstIdentifier.text
910
? replaceFirstIdentifierOfEntityName(node.qualifier, factory.createIdentifier(name))
911
: node.qualifier;
912
0 commit comments