fix(47134): show all meanings for type-only imports and exports (#47138)

This commit is contained in:
LowR
2021-12-15 03:58:21 +09:00
committed by GitHub
parent 8974fead2d
commit 7e0e8671fa
3 changed files with 74 additions and 10 deletions

View File

@@ -99,13 +99,6 @@ namespace ts {
|| isImportSpecifier(parent)
|| isImportClause(parent)
|| isImportEqualsDeclaration(parent) && node === parent.name) {
let decl: Node = parent;
while (decl) {
if (isImportEqualsDeclaration(decl) || isImportClause(decl) || isExportDeclaration(decl)) {
return decl.isTypeOnly ? SemanticMeaning.Type : SemanticMeaning.All;
}
decl = decl.parent;
}
return SemanticMeaning.All;
}
else if (isInRightSideOfInternalImportEqualsDeclaration(node)) {