diff --git a/StyleCop.Analyzers/StyleCop.Analyzers.CodeFixes/DocumentationRules/SA1629CodeFixProvider.cs b/StyleCop.Analyzers/StyleCop.Analyzers.CodeFixes/DocumentationRules/SA1629CodeFixProvider.cs index 16f6d5904..8da151c9b 100644 --- a/StyleCop.Analyzers/StyleCop.Analyzers.CodeFixes/DocumentationRules/SA1629CodeFixProvider.cs +++ b/StyleCop.Analyzers/StyleCop.Analyzers.CodeFixes/DocumentationRules/SA1629CodeFixProvider.cs @@ -91,9 +91,9 @@ protected override async Task 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); } } }