We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e794fe commit 67edefeCopy full SHA for 67edefe
src/compiler/program.ts
@@ -895,7 +895,14 @@ namespace ts {
895
}
896
897
missingFilePaths = arrayFrom(mapDefinedIterator(filesByName.entries(), ([path, file]) => file === undefined ? path as Path : undefined));
898
- files = stableSort(processingDefaultLibFiles, compareDefaultLibFiles).concat(processingOtherFiles);
+
899
+ const dtsFiles: SourceFile[] = [];
900
+ const otherFiles: SourceFile[] = [];
901
+ for (const file of processingOtherFiles) {
902
+ (fileExtensionIs(file.path, Extension.Dts) ? dtsFiles : otherFiles).push(file);
903
+ }
904
905
+ files = stableSort(processingDefaultLibFiles, compareDefaultLibFiles).concat(dtsFiles).concat(otherFiles);
906
processingDefaultLibFiles = undefined;
907
processingOtherFiles = undefined;
908
0 commit comments