From 7235980fe6ec9462c47ff5485b2f21fc8fd881ab Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Thu, 12 Nov 2026 20:05:01 -0800 Subject: [PATCH] Guard export-star filtering by actual symbol presence An ignored symbol does not establish that it exists in the resolved export slice. Only remove named entries when their index is valid; createExport already excludes prototype symbols from remaining exports. --- tsc/internal/ls/autoimport/extract.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsc/internal/ls/autoimport/extract.go b/tsc/internal/ls/autoimport/extract.go index 8a6f98ef6fcd3..1122035d9de7b 100644 --- a/tsc/internal/ls/autoimport/extract.go +++ b/tsc/internal/ls/autoimport/extract.go @@ -194,7 +194,7 @@ func (e *symbolExtractor) extractFromSymbol(name string, symbol *ast.Symbol, mod for name, namedExport := range symbol.Parent().Exports().All() { if name != ast.InternalSymbolNameExportStar { idx := slices.Index(allExports, namedExport) - if idx >= 0 || shouldIgnoreSymbol(namedExport) { + if idx >= 0 { allExports = slices.Delete(allExports, idx, idx+1) } }