We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c125c5 commit 4a0247fCopy full SHA for 4a0247f
test/PowerShellEditorServices.Test/Refactoring/RefactorUtilities.cs
@@ -12,7 +12,15 @@ public class RefactorUtilities
12
13
internal static string GetModifiedScript(string OriginalScript, ModifiedFileResponse Modification)
14
{
15
+ Modification.Changes.Sort((a, b) =>
16
+ {
17
+ if (b.StartLine == a.StartLine)
18
19
+ return b.EndColumn - a.EndColumn;
20
+ }
21
+ return b.StartLine - a.StartLine;
22
23
+ });
24
string[] Lines = OriginalScript.Split(
25
new string[] { Environment.NewLine },
26
StringSplitOptions.None);
0 commit comments