Now that GetTextAsync is cancellable, remove throw on cancel requested

This commit is contained in:
Dustin Campbell 2024-10-11 14:29:47 -07:00
Родитель 8020768864
Коммит ae867ab3e5
1 изменённых файлов: 0 добавлений и 2 удалений

Просмотреть файл

@ -121,8 +121,6 @@ internal sealed class CSharpOnTypeFormattingPass(
changedContext = await changedContext.WithTextAsync(cleanedText, cancellationToken).ConfigureAwait(false);
cancellationToken.ThrowIfCancellationRequested();
// At this point we should have applied all edits that adds/removes newlines.
// Let's now ensure the indentation of each of those lines is correct.