mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Do not offer completions for default module member symbol (#55231)
This commit is contained in:
@@ -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