Fix misplaced comma in auto imported specifier (#40273)

This commit is contained in:
Andrew Branch authored and GitHub committed 2020-08-31 10:54:53 -07:00
1 parent 97f8b87e34
commit bfb00eb164
2 files changed
+25 -1

No files matched your search

+1 -1
View File
@@ -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 {