Skip to content

Commit

Permalink
Reverse sort sourceMap
Browse files Browse the repository at this point in the history
  • Loading branch information
brtemion committed Dec 2, 2023
1 parent 9f35772 commit a2cafc4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/MICore/LaunchOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ public static ReadOnlyCollection<SourceMapEntry> CreateCollection(Xml.LaunchOpti

public static ReadOnlyCollection<SourceMapEntry> CreateCollection(Dictionary<string, object> source)
{
IList<SourceMapEntry> sourceMaps = new List<SourceMapEntry>(source.Keys.Count);
var sourceMaps = new List<SourceMapEntry>(source.Keys.Count);

foreach (var item in source)
{
Expand Down Expand Up @@ -416,6 +416,7 @@ public static ReadOnlyCollection<SourceMapEntry> CreateCollection(Dictionary<str
throw new InvalidLaunchOptionsException(String.Format(CultureInfo.CurrentCulture, MICoreResources.Error_SourceFileMapInvalidEditorPath));
}
}
sourceMaps.Sort((x, y) => string.CompareOrdinal(y.CompileTimePath, x.CompileTimePath));
return new ReadOnlyCollection<SourceMapEntry>(sourceMaps);
}
}
Expand Down

0 comments on commit a2cafc4

Please sign in to comment.