8 writes to CleanupOptions
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp (3)
MetadataAsSource\OmniSharpMetadataAsSourceService.cs (2)
42CleanupOptions = cleanupOptions 66CleanupOptions = formattingOptions.CleanupOptions
Options\OmnisharpLegacyGlobalOptionsWorkspaceService.cs (1)
90CleanupOptions = CodeCleanupOptions.GetDefault(languageServices) with
Microsoft.CodeAnalysis.Workspaces (4)
CleanCodeGenerationOptions.cs (2)
31CleanupOptions = CodeCleanupOptions.GetDefault(languageServices) 80CleanupOptions = await document.GetCodeCleanupOptionsAsync(fallbackOptions.CleanupOptions, cancellationToken).ConfigureAwait(false)
CodeActionOptions.cs (1)
132CleanupOptions = codeActionOptions.CleanupOptions
CodeGenerationOptions.cs (1)
124CleanupOptions = options.GetCodeCleanupOptions(languageServices, allowImportsInHiddenRegions, fallbackOptions?.CleanupOptions)
Roslyn.VisualStudio.Next.UnitTests (1)
Services\VisualStudioDiagnosticAnalyzerExecutorTests.cs (1)
71CleanupOptions = new()
14 references to CleanupOptions
Microsoft.CodeAnalysis.Features (7)
MetadataAsSource\AbstractMetadataAsSourceService.cs (3)
54AddImportOptions = options.CleanupOptions.AddImportOptions 75options.CleanupOptions.FormattingOptions, 80return await Simplifier.ReduceAsync(formattedDoc, reducers, options.CleanupOptions.SimplifierOptions, cancellationToken).ConfigureAwait(false);
MetadataAsSource\DecompilationMetadataAsSourceFileProvider.cs (1)
127var decompilationDocument = await decompiledSourceService.AddSourceToAsync(temporaryDocument, compilation, symbol, refInfo.metadataReference, refInfo.assemblyLocation, options.GenerationOptions.CleanupOptions.FormattingOptions, cancellationToken).ConfigureAwait(false);
PullMemberUp\MembersPuller.cs (3)
387options.CleanupOptions.AddImportOptions, 394options.CleanupOptions.FormattingOptions, 398destinationDocument = await Formatter.FormatAsync(destinationDocument, s_removableImportAnnotation, options.CleanupOptions.FormattingOptions, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Workspaces (5)
CleanCodeGenerationOptions.cs (3)
38AddImportOptions = CleanupOptions.AddImportOptions 59=> (await GetCleanCodeGenerationOptionsAsync(languageServices, cancellationToken).ConfigureAwait(false)).CleanupOptions; 80CleanupOptions = await document.GetCodeCleanupOptionsAsync(fallbackOptions.CleanupOptions, cancellationToken).ConfigureAwait(false)
CodeGenerationOptions.cs (1)
124CleanupOptions = options.GetCodeCleanupOptions(languageServices, allowImportsInHiddenRegions, fallbackOptions?.CleanupOptions)
IdeAnalyzerOptions.cs (1)
44public CodeCleanupOptions? CleanupOptions => CleanCodeGenerationOptions?.CleanupOptions;
Microsoft.VisualStudio.LanguageServices (2)
Venus\ContainedLanguageCodeSupport.cs (2)
229targetDocument.WithSyntaxRoot(newRoot), Simplifier.Annotation, options.CleanupOptions.SimplifierOptions, cancellationToken).WaitAndGetResult_Venus(cancellationToken).GetSyntaxRootSynchronously(cancellationToken); 237options.CleanupOptions.FormattingOptions,