We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1e55d65 + d0abd39 commit c04faa1Copy full SHA for c04faa1
src/services/completions.ts
@@ -1397,7 +1397,7 @@ namespace ts.Completions {
1397
if (resolvedModuleSymbol !== moduleSymbol &&
1398
// Don't add another completion for `export =` of a symbol that's already global.
1399
// So in `declare namespace foo {} declare module "foo" { export = foo; }`, there will just be the global completion for `foo`.
1400
- resolvedModuleSymbol.declarations.some(d => !!d.getSourceFile().externalModuleIndicator)) {
+ some(resolvedModuleSymbol.declarations, d => !!d.getSourceFile().externalModuleIndicator)) {
1401
symbols.push(resolvedModuleSymbol);
1402
symbolToOriginInfoMap[getSymbolId(resolvedModuleSymbol)] = { kind: SymbolOriginInfoKind.Export, moduleSymbol, isDefaultExport: false };
1403
}
0 commit comments