2 instantiations of DocumentFormattingOptions
Microsoft.CodeAnalysis.Workspaces (2)
DocumentFormattingOptions.cs (2)
19public static readonly DocumentFormattingOptions Default = new(); 38return new()
29 references to DocumentFormattingOptions
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (4)
Options\GlobalOptionsTests.cs (4)
164property.DeclaringType == typeof(DocumentFormattingOptions) && property.Name == nameof(DocumentFormattingOptions.FileHeaderTemplate) || 165property.DeclaringType == typeof(DocumentFormattingOptions) && property.Name == nameof(DocumentFormattingOptions.InsertFinalNewLine) ||
Microsoft.CodeAnalysis.Features (2)
AddFileBanner\AbstractAddFileBannerCodeRefactoringProvider.cs (1)
46var formattingOptions = await document.GetDocumentFormattingOptionsAsync(context.Options, cancellationToken).ConfigureAwait(false);
CodeRefactorings\MoveType\AbstractMoveTypeService.MoveTypeEditor.cs (1)
165var documentFormattingOptions = await document.GetDocumentFormattingOptionsAsync(State.FallbackOptions, CancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.LanguageServer.Protocol (4)
Features\Options\DocumentFormattingOptionsStorage.cs (2)
13public static ValueTask<DocumentFormattingOptions> GetDocumentFormattingOptionsAsync(this Document document, IGlobalOptionService globalOptions, CancellationToken cancellationToken) 16public static DocumentFormattingOptions GetDocumentFormattingOptions(this IGlobalOptionService globalOptions)
Features\Options\GlobalCodeActionOptionsProvider.cs (2)
51ValueTask<DocumentFormattingOptions> OptionsProvider<DocumentFormattingOptions>.GetOptionsAsync(LanguageServices languageServices, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.Workspaces (18)
CodeActionOptions.cs (2)
102ValueTask<DocumentFormattingOptions> OptionsProvider<DocumentFormattingOptions>.GetOptionsAsync(LanguageServices languageServices, CancellationToken cancellationToken)
CodeCleanupOptions.cs (4)
27[DataMember] public DocumentFormattingOptions DocumentFormattingOptions { get; init; } = DocumentFormattingOptions.Default; 69async ValueTask<DocumentFormattingOptions> OptionsProvider<DocumentFormattingOptions>.GetOptionsAsync(LanguageServices languageServices, CancellationToken cancellationToken)
CodeStyleOptions2.cs (1)
226DocumentFormattingOptions.Default.FileHeaderTemplate,
DocumentFormattingOptions.cs (8)
19public static readonly DocumentFormattingOptions Default = new(); 27: OptionsProvider<DocumentFormattingOptions> 34public static DocumentFormattingOptions GetDocumentFormattingOptions(this IOptionsReader options, DocumentFormattingOptions? fallbackOptions) 36fallbackOptions ??= DocumentFormattingOptions.Default; 46public static async ValueTask<DocumentFormattingOptions> GetDocumentFormattingOptionsAsync(this Document document, DocumentFormattingOptions? fallbackOptions, CancellationToken cancellationToken) 52public static async ValueTask<DocumentFormattingOptions> GetDocumentFormattingOptionsAsync(this Document document, DocumentFormattingOptionsProvider fallbackOptionsProvider, CancellationToken cancellationToken)
FormattingOptions2.cs (1)
60"insert_final_newline", DocumentFormattingOptions.Default.InsertFinalNewLine, FormattingOptionGroups.NewLine, isEditorConfigOption: true);
Options\LegacyGlobalCodeActionOptionsWorkspaceService.cs (2)
47ValueTask<DocumentFormattingOptions> OptionsProvider<DocumentFormattingOptions>.GetOptionsAsync(LanguageServices languageServices, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
Remote\ServiceDescriptorTests.cs (1)
210DocumentFormattingOptions.Default,