Skip to content

Commit 9b78607

Browse files
committed
fix exportInfoId not incremented issue
1 parent 64e1673 commit 9b78607

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/ls/autoimports.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,8 @@ func (e *exportInfoMap) add(
164164
}
165165

166166
moduleName := stringutil.StripQuotes(moduleSymbol.Name)
167-
id := e.exportInfoId + 1
167+
id := e.exportInfoId
168+
e.exportInfoId += 1
168169
target := ch.SkipAlias(symbol)
169170

170171
if flagMatch != nil && !flagMatch(target.Flags) {

0 commit comments

Comments
 (0)