1 implementation of FormatNewDocumentAsync
Microsoft.CodeAnalysis.Features (1)
Formatting\AbstractNewDocumentFormattingService.cs (1)
36public async Task<Document> FormatNewDocumentAsync(Document document, Document? hintDocument, CodeCleanupOptions options, CancellationToken cancellationToken)
5 references to FormatNewDocumentAsync
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Formatting\AbstractNewDocumentFormattingServiceTests.cs (1)
40var formattedDocument = await formattingService.FormatNewDocumentAsync(document, hintDocument: null, cleanupOptions, CancellationToken.None);
Microsoft.CodeAnalysis.Features (3)
Formatting\INewDocumentFormattingProvider.cs (1)
13/// <inheritdoc cref="INewDocumentFormattingService.FormatNewDocumentAsync(Document, Document, CodeCleanupOptions, CancellationToken)"/>
GenerateType\AbstractGenerateTypeService.Editor.cs (1)
324codeGenResult = await formattingService.FormatNewDocumentAsync(codeGenResult, _semanticDocument.Document, cleanupOptions, _cancellationToken).ConfigureAwait(false);
Shared\Utilities\ExtractTypeHelpers.cs (1)
98newTypeDocument = await formattingService.FormatNewDocumentAsync(newTypeDocument, hintDocument, newCleanupOptions, cancellationToken).ConfigureAwait(false);
Microsoft.VisualStudio.LanguageServices (1)
Implementation\AbstractEditorFactory.cs (1)
346addedDocument = await formattingService.FormatNewDocumentAsync(addedDocument, hintDocument: null, cleanupOptions, cancellationToken).ConfigureAwait(true);