2 writes to SimplifierOptions
Microsoft.CodeAnalysis.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeCleanup\CodeCleanupOptionsProviders.cs (2)
22SimplifierOptions = options.GetSimplifierOptions(languageServices), 37SimplifierOptions = SimplifierOptionsProviders.GetDefault(languageServices)
14 references to SimplifierOptions
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
EventHookup\EventHookupCommandHandler_TabKeyCommand.cs (1)
213documentWithNameAndAnnotationsAdded.WithSyntaxRoot(updatedRoot), Simplifier.Annotation, cleanupOptions.SimplifierOptions, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.Features (2)
Formatting\CSharpOrganizeUsingsNewDocumentFormattingProvider.cs (1)
33organizedDocument, options.SimplifierOptions, options.AddImportOptions.UsingDirectivePlacement, cancellationToken).ConfigureAwait(false);
IntroduceVariable\CSharpIntroduceVariableService_IntroduceLocal.cs (1)
52var simplifierOptions = (CSharpSimplifierOptions)options.SimplifierOptions;
Microsoft.CodeAnalysis.Features (6)
ChangeSignature\AbstractChangeSignatureService.cs (1)
427var reducedDoc = await Simplifier.ReduceAsync(docWithImports, Simplifier.Annotation, cleanupOptions.SimplifierOptions, cancellationToken: cancellationToken).ConfigureAwait(false);
CodeRefactorings\SyncNamespace\AbstractChangeNamespaceService.cs (1)
717documentOptions.SimplifierOptions,
Completion\Providers\AbstractMemberInsertingCompletionProvider.cs (1)
223document = await Simplifier.ReduceAsync(document, Simplifier.Annotation, cleanupOptions.SimplifierOptions, cancellationToken).ConfigureAwait(false);
ExtractInterface\AbstractExtractInterfaceService.cs (1)
298cleanupOptions.SimplifierOptions,
ExtractMethod\MethodExtractor.cs (1)
151var simplifiedDocument = await Simplifier.ReduceAsync(annotatedDocument, Simplifier.Annotation, this.Options.CodeCleanupOptions.SimplifierOptions, cancellationToken).ConfigureAwait(false);
Shared\Utilities\ExtractTypeHelpers.cs (1)
109var simplified = await Simplifier.ReduceAsync(newTypeDocument, newCleanupOptions.SimplifierOptions, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Workspaces (4)
CodeActions\CodeAction_Cleanup.cs (1)
63static (document, options, cancellationToken) => Simplifier.ReduceAsync(document, Simplifier.Annotation, options.SimplifierOptions, cancellationToken),
CodeCleanup\Providers\SimplificationCodeCleanupProvider.cs (1)
20=> Simplifier.ReduceAsync(document, spans, options.SimplifierOptions, cancellationToken);
ExtractMethod\ExtractMethodOptions.cs (1)
39public SimplifierOptions SimplifierOptions => CodeCleanupOptions.SimplifierOptions;
Rename\ConflictEngine\RenamedSpansTracker.cs (1)
167document = await Simplifier.ReduceAsync(document, Simplifier.Annotation, cleanupOptions.SimplifierOptions, cancellationToken).ConfigureAwait(false);
Microsoft.VisualStudio.LanguageServices (1)
Venus\ContainedLanguageCodeSupport.cs (1)
226targetDocument.WithSyntaxRoot(newRoot), Simplifier.Annotation, options.CleanupOptions.SimplifierOptions, cancellationToken).WaitAndGetResult_Venus(cancellationToken).GetSyntaxRootSynchronously(cancellationToken);