Skip to content

Commit

Permalink
Fix review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
bjornhellander committed Jan 3, 2024
1 parent 6c62081 commit 58e9d96
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ protected override async Task<SyntaxNode> FixAllInDocumentAsync(FixAllContext fi

changes.Sort((left, right) => left.Span.Start.CompareTo(right.Span.Start));

var text = await document.GetTextAsync().ConfigureAwait(false);
var tree = await document.GetSyntaxTreeAsync().ConfigureAwait(false);
return await tree.WithChangedText(text.WithChanges(changes)).GetRootAsync().ConfigureAwait(false);
var text = await document.GetTextAsync(fixAllContext.CancellationToken).ConfigureAwait(false);
var tree = await document.GetSyntaxTreeAsync(fixAllContext.CancellationToken).ConfigureAwait(false);
return await tree.WithChangedText(text.WithChanges(changes)).GetRootAsync(fixAllContext.CancellationToken).ConfigureAwait(false);
}
}
}
Expand Down

0 comments on commit 58e9d96

Please sign in to comment.