1 implementation of FormatNewDocumentAsync
Microsoft.CodeAnalysis.Features (1)
Formatting\AbstractNewDocumentFormattingService.cs (1)
35
public async Task<Document>
FormatNewDocumentAsync
(Document document, Document? hintDocument, CodeCleanupOptions options, CancellationToken cancellationToken)
3 references to FormatNewDocumentAsync
Microsoft.CodeAnalysis.Features (3)
Formatting\INewDocumentFormattingProvider.cs (1)
13
/// <inheritdoc cref="INewDocumentFormattingService.
FormatNewDocumentAsync
(Document, Document, CodeCleanupOptions, CancellationToken)"/>
GenerateType\AbstractGenerateTypeService.Editor.cs (1)
318
codeGenResult = await formattingService.
FormatNewDocumentAsync
(codeGenResult, _semanticDocument.Document, cleanupOptions, _cancellationToken).ConfigureAwait(false);
Shared\Utilities\ExtractTypeHelpers.cs (1)
96
newTypeDocument = await formattingService.
FormatNewDocumentAsync
(newTypeDocument, hintDocument, newCleanupOptions, cancellationToken).ConfigureAwait(false);