File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -895,7 +895,14 @@ namespace ts {
895
895
}
896
896
897
897
missingFilePaths = arrayFrom ( mapDefinedIterator ( filesByName . entries ( ) , ( [ path , file ] ) => file === undefined ? path as Path : undefined ) ) ;
898
- files = stableSort ( processingDefaultLibFiles , compareDefaultLibFiles ) . concat ( processingOtherFiles ) ;
898
+
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 ) ;
899
906
processingDefaultLibFiles = undefined ;
900
907
processingOtherFiles = undefined ;
901
908
}
You can’t perform that action at this time.
0 commit comments