File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -206,7 +206,10 @@ func processAllProgramFiles(
206
206
}
207
207
}
208
208
209
- loader .pathForLibFileResolutions .Range (func (key tspath.Path , value * libResolution ) bool {
209
+ keys := slices .Collect (loader .pathForLibFileResolutions .Keys ())
210
+ slices .Sort (keys )
211
+ for _ , key := range keys {
212
+ value , _ := loader .pathForLibFileResolutions .Load (key )
210
213
resolvedModules [key ] = module.ModeAwareCache [* module.ResolvedModule ]{
211
214
module.ModeAwareCacheKey {Name : value .libraryName , Mode : core .ModuleKindCommonJS }: value .resolution ,
212
215
}
@@ -216,8 +219,7 @@ func processAllProgramFiles(
216
219
for _ , diag := range value .resolution .ResolutionDiagnostics {
217
220
fileLoadDiagnostics .Add (diag )
218
221
}
219
- return true
220
- })
222
+ }
221
223
222
224
return processedFiles {
223
225
resolver : loader .resolver ,
You can’t perform that action at this time.
0 commit comments