Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tmat committed Apr 9, 2022
1 parent 3ae98bb commit 579ac53
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,13 @@ protected override async Task FixAllAsync(
{
var root = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
var model = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
var options = (TSimplifierOptions)await SimplifierOptions.FromDocumentAsync(document, cancellationToken).ConfigureAwait(false);
var simplifierOptions = (TSimplifierOptions)await SimplifierOptions.FromDocumentAsync(document, options(document.Project.LanguageServices).FallbackSimplifierOptions, cancellationToken).ConfigureAwait(false);

foreach (var diagnostic in diagnostics)
{
var (node, _) = GetNodeToSimplify(
root, model, diagnostic.Location.SourceSpan,
options, cancellationToken);
simplifierOptions, cancellationToken);

if (node == null)
return;
Expand Down

0 comments on commit 579ac53

Please sign in to comment.