2 implementations of State
Microsoft.CodeAnalysis.Workspaces (2)
CodeFixes\FixAllOccurrences\FixAllContext.cs (1)
74IFixAllState IFixAllContext.State => this.State;
CodeRefactorings\FixAllOccurences\FixAllContext.cs (1)
66IFixAllState IFixAllContext.State => this.State;
20 references to State
Microsoft.CodeAnalysis.Features (10)
CodeFixesAndRefactorings\AbstractFixAllGetFixesService.cs (10)
30return fixAllContext.State.Solution; 34return await codeAction.GetChangedSolutionInternalAsync(fixAllContext.State.Solution, fixAllContext.Progress, fixAllContext.CancellationToken).ConfigureAwait(false); 47codeAction, showPreviewChangesDialog, fixAllContext.Progress, fixAllContext.State, fixAllContext.CancellationToken).ConfigureAwait(false); 158var fixAllKind = fixAllContext.State.FixAllKind; 170m[FixAllLogger.CorrelationId] = fixAllContext.State.CorrelationId; 171m[FixAllLogger.FixAllScope] = fixAllContext.State.Scope.ToString(); 178action = await fixAllContext.State.FixAllProvider.GetFixAsync(fixAllContext).ConfigureAwait(false); 182FixAllLogger.LogComputationResult(fixAllKind, fixAllContext.State.CorrelationId, completed: false); 188FixAllLogger.LogComputationResult(fixAllKind, fixAllContext.State.CorrelationId, completed: true); 192FixAllLogger.LogComputationResult(fixAllKind, fixAllContext.State.CorrelationId, completed: false, timedOut: true);
Microsoft.CodeAnalysis.Workspaces (10)
CodeFixesAndRefactorings\DefaultFixAllProviderHelpers.cs (7)
32using var _ = await RemoteKeepAliveSession.CreateAsync(fixAllContext.State.Solution, fixAllContext.CancellationToken).ConfigureAwait(false); 34var solution = fixAllContext.State.Scope switch 40_ => throw ExceptionUtilities.UnexpectedValue(fixAllContext.State.Scope), 47title, (_, _) => Task.FromResult(solution), equivalenceKey: null, CodeActionPriority.Default, fixAllContext.State.FixAllProvider.Cleanup); 60=> fixAllContextsAsync(fixAllContext, [(TFixAllContext)fixAllContext.With((document: null, fixAllContext.State.Project))]); 67var solution = fixAllContext.State.Solution; 84.Where(p => p.Language == fixAllContext.State.Project.Language);
CodeFixesAndRefactorings\DocumentBasedFixAllProviderHelpers.cs (3)
35var originalSolution = originalFixAllContext.State.Solution; 48originalSolution, dirtySolution, progressTracker, originalFixAllContext.State.FixAllProvider.Cleanup, cancellationToken).ConfigureAwait(false); 77fixAllContext.State.Scope is FixAllScope.Document or FixAllScope.Project or FixAllScope.ContainingMember or FixAllScope.ContainingType);