Skip to content

Commit

Permalink
Merge pull request #573 from dotnet/indexing
Browse files Browse the repository at this point in the history
Fix indexing issue when processing nested actions.
  • Loading branch information
CyrusNajmabadi authored Jul 28, 2020
2 parents a1300bf + 7392294 commit 1e2b063
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ protected virtual ImmutableArray<CodeAction> FilterCodeActions(ImmutableArray<Co
if (!nestedActions.IsEmpty)
{
builder.RemoveAt(i);
for (var j = nestedActions.Length - 1; i >= 0; i--)
for (var j = nestedActions.Length - 1; j >= 0; j--)
{
builder.Insert(i, nestedActions[j]);
}
Expand Down

0 comments on commit 1e2b063

Please sign in to comment.