Skip to content

Commit 58e9d96

Browse files
Fix review comments
#2957
1 parent 6c62081 commit 58e9d96

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

StyleCop.Analyzers/StyleCop.Analyzers.CodeFixes/DocumentationRules/SA1629CodeFixProvider.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ protected override async Task<SyntaxNode> FixAllInDocumentAsync(FixAllContext fi
9191

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

94-
var text = await document.GetTextAsync().ConfigureAwait(false);
95-
var tree = await document.GetSyntaxTreeAsync().ConfigureAwait(false);
96-
return await tree.WithChangedText(text.WithChanges(changes)).GetRootAsync().ConfigureAwait(false);
94+
var text = await document.GetTextAsync(fixAllContext.CancellationToken).ConfigureAwait(false);
95+
var tree = await document.GetSyntaxTreeAsync(fixAllContext.CancellationToken).ConfigureAwait(false);
96+
return await tree.WithChangedText(text.WithChanges(changes)).GetRootAsync(fixAllContext.CancellationToken).ConfigureAwait(false);
9797
}
9898
}
9999
}

0 commit comments

Comments
 (0)