mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-16 15:45:27 -05:00
Fix misplaced comma in auto imported specifier (#40273)
This commit is contained in:
@@ -700,7 +700,7 @@ namespace ts.codefix {
|
||||
}
|
||||
else if (existingSpecifiers?.length) {
|
||||
for (const spec of newSpecifiers) {
|
||||
changes.insertNodeAtEndOfList(sourceFile, existingSpecifiers, spec);
|
||||
changes.insertNodeInListAfter(sourceFile, last(existingSpecifiers), spec, existingSpecifiers);
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user