mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-14 16:56:06 -05:00
Do not offer completions for default module member symbol (#55231)
This commit is contained in:
committed by
GitHub
parent
b87e301822
commit
defe33afa1
@@ -45463,7 +45463,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
|
||||
if (meaning) {
|
||||
source.forEach(symbol => {
|
||||
// Similar condition as in `resolveNameHelper`
|
||||
if (!getDeclarationOfKind(symbol, SyntaxKind.ExportSpecifier) && !getDeclarationOfKind(symbol, SyntaxKind.NamespaceExport)) {
|
||||
if (!getDeclarationOfKind(symbol, SyntaxKind.ExportSpecifier) && !getDeclarationOfKind(symbol, SyntaxKind.NamespaceExport) && symbol.escapedName !== InternalSymbolName.Default) {
|
||||
copySymbol(symbol, meaning);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user