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