3 implementations of IProgressTracker
Microsoft.CodeAnalysis.EditorFeatures (1)
Shared\Utilities\UIThreadOperationContextProgressTracker.cs (1)
11internal class UIThreadOperationContextProgressTracker : IProgressTracker
Microsoft.CodeAnalysis.Workspaces (2)
NoOpProgressTracker.cs (1)
7internal class NoOpProgressTracker : IProgressTracker
Shared\Utilities\ProgressTracker.cs (1)
15internal class ProgressTracker : IProgressTracker
101 references to IProgressTracker
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (7)
AddUsing\AddUsingNuGetTests.cs (7)
63installerServiceMock.Setup(s => s.TryInstallPackageAsync(It.IsAny<Workspace>(), It.IsAny<DocumentId>(), It.IsAny<string>(), "NuGetPackage", It.IsAny<string>(), It.IsAny<bool>(), It.IsAny<IProgressTracker>(), It.IsAny<CancellationToken>())) 96installerServiceMock.Setup(s => s.TryInstallPackageAsync(It.IsAny<Workspace>(), It.IsAny<DocumentId>(), It.IsAny<string>(), "NuGetPackage", It.IsAny<string>(), It.IsAny<bool>(), It.IsAny<IProgressTracker>(), It.IsAny<CancellationToken>())) 127installerServiceMock.Setup(s => s.TryInstallPackageAsync(It.IsAny<Workspace>(), It.IsAny<DocumentId>(), It.IsAny<string>(), "NuGetPackage", It.IsAny<string>(), It.IsAny<bool>(), It.IsAny<IProgressTracker>(), It.IsAny<CancellationToken>())) 158installerServiceMock.Setup(s => s.TryInstallPackageAsync(It.IsAny<Workspace>(), It.IsAny<DocumentId>(), It.IsAny<string>(), "NuGetPackage", It.IsAny<string>(), It.IsAny<bool>(), It.IsAny<IProgressTracker>(), It.IsAny<CancellationToken>())) 257installerServiceMock.Setup(s => s.TryInstallPackageAsync(It.IsAny<Workspace>(), It.IsAny<DocumentId>(), It.IsAny<string>(), "NuGetPackage", /*versionOpt*/ null, It.IsAny<bool>(), It.IsAny<IProgressTracker>(), It.IsAny<CancellationToken>())) 291installerServiceMock.Setup(s => s.TryInstallPackageAsync(It.IsAny<Workspace>(), It.IsAny<DocumentId>(), It.IsAny<string>(), "NuGetPackage", "1.0", It.IsAny<bool>(), It.IsAny<IProgressTracker>(), It.IsAny<CancellationToken>())) 324installerServiceMock.Setup(s => s.TryInstallPackageAsync(It.IsAny<Workspace>(), It.IsAny<DocumentId>(), It.IsAny<string>(), "NuGetPackage", "1.0", It.IsAny<bool>(), It.IsAny<IProgressTracker>(), It.IsAny<CancellationToken>()))
Microsoft.CodeAnalysis.EditorFeatures (4)
CodeActions\CodeActionEditHandlerService.cs (2)
108IProgressTracker progressTracker, 274IProgressTracker progressTracker,
CodeActions\ICodeActionEditHandlerService.cs (1)
26IProgressTracker progressTracker,
RenameTracking\RenameTrackingTaggerProvider.RenameTrackingCodeAction.cs (1)
121Workspace workspace, Solution originalSolution, IProgressTracker progressTracker, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.EditorFeatures.Cocoa (7)
AbstractFixAllSuggestedAction.cs (1)
58IProgressTracker progressTracker, CancellationToken cancellationToken)
FixAllGetFixesService.cs (1)
108IProgressTracker progressTracker,
PreviewChangesCodeAction.cs (1)
34Solution originalSolution, IProgressTracker progressTracker, CancellationToken cancellationToken)
SuggestedAction.cs (3)
77IProgressTracker progressTracker, CancellationToken cancellationToken) 129protected virtual async Task InnerInvokeAsync(IProgressTracker progressTracker, CancellationToken cancellationToken) 141private async Task InvokeWorkerAsync(IProgressTracker progressTracker, CancellationToken cancellationToken)
SuggestedActionWithNestedActions.cs (1)
61protected override Task InnerInvokeAsync(IProgressTracker progressTracker, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.EditorFeatures.Wpf (7)
Suggestions\FixAll\FixAllGetFixesService.cs (1)
108IProgressTracker progressTracker,
Suggestions\PreviewChanges\PreviewChangesCodeAction.cs (1)
34Solution originalSolution, IProgressTracker progressTracker, CancellationToken cancellationToken)
Suggestions\SuggestedActions\AbstractFixAllSuggestedAction.cs (1)
58IProgressTracker progressTracker, CancellationToken cancellationToken)
Suggestions\SuggestedActions\SuggestedAction.cs (3)
77IProgressTracker progressTracker, CancellationToken cancellationToken) 129protected virtual async Task InnerInvokeAsync(IProgressTracker progressTracker, CancellationToken cancellationToken) 141private async Task InvokeWorkerAsync(IProgressTracker progressTracker, CancellationToken cancellationToken)
Suggestions\SuggestedActionWithNestedActions.cs (1)
61protected override Task InnerInvokeAsync(IProgressTracker progressTracker, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.Features (15)
AbstractChangeNamespaceToMatchFolderCodeFixProvider.CustomFixAllProvider.cs (1)
75IProgressTracker progressTracker,
AddImport\CodeActions\AssemblyReferenceCodeAction.cs (1)
87Workspace workspace, Solution originalSolution, IProgressTracker progressTracker, CancellationToken cancellationToken)
AddImport\CodeActions\InstallPackageAndAddImportCodeAction.cs (1)
122Workspace workspace, Solution originalSolution, IProgressTracker progressTracker, CancellationToken cancellationToken)
AddImport\CodeActions\ProjectSymbolReferenceCodeAction.cs (1)
80Workspace workspace, Solution originalSolution, IProgressTracker progressTracker, CancellationToken cancellationToken)
AddPackage\InstallPackageDirectlyCodeActionOperation.cs (1)
73Workspace workspace, Solution originalSolution, IProgressTracker progressTracker, CancellationToken cancellationToken)
ChangeSignature\ChangeSignatureCodeActionOperation.cs (2)
38Workspace workspace, Solution originalSolution, IProgressTracker progressTracker, CancellationToken cancellationToken) 43private bool ApplyWorker(Workspace workspace, Solution originalSolution, IProgressTracker progressTracker, CancellationToken cancellationToken)
CodeFixes\FixAllOccurrences\AbstractFixAllCodeFixCodeAction.cs (1)
27protected override IFixAllContext CreateFixAllContext(IFixAllState fixAllState, IProgressTracker progressTracker, CancellationToken cancellationToken)
CodeFixes\Suppression\AbstractSuppressionBatchFixAllProvider.cs (3)
53var progressTracker = fixAllContext.GetProgressTracker(); 90var progressTracker = fixAllContext.GetProgressTracker(); 122FixAllState fixAllState, IProgressTracker progressTracker, CancellationToken cancellationToken)
CodeFixesAndRefactorings\AbstractFixAllCodeAction.cs (3)
41protected abstract IFixAllContext CreateFixAllContext(IFixAllState fixAllState, IProgressTracker progressTracker, CancellationToken cancellationToken); 60IProgressTracker progressTracker, CancellationToken cancellationToken) 74IProgressTracker progressTracker, CancellationToken cancellationToken)
CodeRefactorings\FixAllOccurences\FixAllCodeRefactoringCodeAction.cs (1)
21protected override IFixAllContext CreateFixAllContext(IFixAllState fixAllState, IProgressTracker progressTracker, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.LanguageServer.Protocol (10)
Features\CodeCleanup\AbstractCodeCleanupService.cs (5)
42IProgressTracker progressTracker, 140IProgressTracker progressTracker, CodeActionOptionsProvider fallbackOptions, CancellationToken cancellationToken) 159Document document, ImmutableArray<string> diagnosticIds, IProgressTracker progressTracker, CodeActionOptionsProvider fallbackOptions, CancellationToken cancellationToken) 173private async Task<Document> ApplyCodeFixesForSpecificDiagnosticIdAsync(Document document, string diagnosticId, IProgressTracker progressTracker, CodeActionOptionsProvider fallbackOptions, CancellationToken cancellationToken) 217IProgressTracker progressTracker,
Features\CodeCleanup\ICodeCleanupService.cs (1)
16Task<Document> CleanupAsync(Document document, EnabledDiagnosticOptions enabledDiagnostics, IProgressTracker progressTracker, CodeActionOptionsProvider fallbackOptions, CancellationToken cancellationToken);
Features\CodeFixes\CodeFixService.cs (2)
287public Task<TDocument> ApplyCodeFixesForSpecificDiagnosticIdAsync<TDocument>(TDocument document, string diagnosticId, IProgressTracker progressTracker, CodeActionOptionsProvider fallbackOptions, CancellationToken cancellationToken) where TDocument : TextDocument 294IProgressTracker progressTracker,
Features\CodeFixes\ICodeFixService.cs (2)
29Task<TDocument> ApplyCodeFixesForSpecificDiagnosticIdAsync<TDocument>(TDocument document, string diagnosticId, DiagnosticSeverity severity, IProgressTracker progressTracker, CodeActionOptionsProvider fallbackOptions, CancellationToken cancellationToken) 48public static Task<TDocument> ApplyCodeFixesForSpecificDiagnosticIdAsync<TDocument>(this ICodeFixService service, TDocument document, string diagnosticId, IProgressTracker progressTracker, CodeActionOptionsProvider fallbackOptions, CancellationToken cancellationToken) where TDocument : TextDocument
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (5)
Diagnostics\AddImport\AddImportTests_NuGet.vb (5)
55installerServiceMock.Setup(Function(s) s.TryInstallPackageAsync(It.IsAny(Of Workspace), It.IsAny(Of DocumentId), It.IsAny(Of String), "NuGetPackage", It.IsAny(Of String), It.IsAny(Of Boolean), It.IsAny(Of IProgressTracker)(), It.IsAny(Of CancellationToken))). 84installerServiceMock.Setup(Function(s) s.TryInstallPackageAsync(It.IsAny(Of Workspace), It.IsAny(Of DocumentId), It.IsAny(Of String), "NuGetPackage", It.IsAny(Of String), It.IsAny(Of Boolean), It.IsAny(Of IProgressTracker)(), It.IsAny(Of CancellationToken))). 113installerServiceMock.Setup(Function(s) s.TryInstallPackageAsync(It.IsAny(Of Workspace), It.IsAny(Of DocumentId), It.IsAny(Of String), "NuGetPackage", It.IsAny(Of String), It.IsAny(Of Boolean), It.IsAny(Of IProgressTracker)(), It.IsAny(Of CancellationToken))). 205installerServiceMock.Setup(Function(s) s.TryInstallPackageAsync(It.IsAny(Of Workspace), It.IsAny(Of DocumentId), It.IsAny(Of String), "NuGetPackage", Nothing, It.IsAny(Of Boolean), It.IsAny(Of IProgressTracker)(), It.IsAny(Of CancellationToken))). 237installerServiceMock.Setup(Function(s) s.TryInstallPackageAsync(It.IsAny(Of Workspace), It.IsAny(Of DocumentId), It.IsAny(Of String), "NuGetPackage", "1.0", It.IsAny(Of Boolean), It.IsAny(Of IProgressTracker)(), It.IsAny(Of CancellationToken))).
Microsoft.CodeAnalysis.Workspaces (39)
CodeActions\CodeAction.cs (4)
142Solution originalSolution, IProgressTracker progressTracker, CancellationToken cancellationToken) 151Solution originalSolution, IProgressTracker progressTracker, CancellationToken cancellationToken) 197IProgressTracker progressTracker, CancellationToken cancellationToken) 226IProgressTracker progressTracker, CancellationToken cancellationToken)
CodeActions\CodeActionWithOptions.cs (1)
54Solution originalSolution, IProgressTracker progressTracker, CancellationToken cancellationToken)
CodeActions\Operations\ApplyChangesOperation.cs (2)
49internal sealed override Task<bool> TryApplyAsync(Workspace workspace, Solution originalSolution, IProgressTracker progressTracker, CancellationToken cancellationToken) 56IProgressTracker progressTracker,
CodeActions\Operations\CodeActionOperation.cs (1)
34internal virtual Task<bool> TryApplyAsync(Workspace workspace, Solution originalSolution, IProgressTracker progressTracker, CancellationToken cancellationToken)
CodeFixes\FixAllOccurrences\BatchFixAllProvider.cs (4)
45var progressTracker = originalFixAllContext.GetProgressTracker(); 80FixAllContext fixAllContext, IProgressTracker progressTracker, Dictionary<DocumentId, TextChangeMerger> docIdToTextMerger) 89private static async Task<ImmutableDictionary<Document, ImmutableArray<Diagnostic>>> DetermineDiagnosticsAsync(FixAllContext fixAllContext, IProgressTracker progressTracker) 111IProgressTracker progressTracker,
CodeFixes\FixAllOccurrences\DocumentBasedFixAllProvider.cs (3)
82IProgressTracker progressTracker) 94private static async Task<ImmutableDictionary<Document, ImmutableArray<Diagnostic>>> DetermineDiagnosticsAsync(FixAllContext fixAllContext, IProgressTracker progressTracker) 107FixAllContext fixAllContext, IProgressTracker progressTracker, ImmutableDictionary<Document, ImmutableArray<Diagnostic>> diagnostics)
CodeFixes\FixAllOccurrences\FixAllContext.cs (3)
70internal IProgressTracker ProgressTracker { get; } 79IProgressTracker IFixAllContext.ProgressTracker => this.ProgressTracker; 215IProgressTracker progressTracker,
CodeFixes\FixAllOccurrences\FixAllContextHelper.cs (1)
31var progressTracker = fixAllContext.GetProgressTracker();
CodeFixesAndRefactorings\DocumentBasedFixAllProviderHelpers.cs (5)
28IProgressTracker progressTracker, 30Func<TFixAllContext, IProgressTracker, Task<Dictionary<DocumentId, (SyntaxNode? node, SourceText? text)>>> getFixedDocumentsAsync) 58IProgressTracker progressTracker, 59Func<TFixAllContext, IProgressTracker, Task<Dictionary<DocumentId, (SyntaxNode? node, SourceText? text)>>> getFixedDocumentsAsync) 77IProgressTracker progressTracker,
CodeFixesAndRefactorings\IFixAllContext.cs (1)
27IProgressTracker ProgressTracker { get; }
CodeRefactorings\FixAllOccurences\DocumentBasedFixAllProvider.cs (1)
88FixAllContext fixAllContext, IProgressTracker progressTracker)
CodeRefactorings\FixAllOccurences\FixAllContext.cs (3)
53internal IProgressTracker ProgressTracker { get; } 72IProgressTracker IFixAllContext.ProgressTracker => this.ProgressTracker; 85IProgressTracker progressTracker,
FixAllContextExtensions.cs (1)
13public static IProgressTracker GetProgressTracker(this FixAllContext context)
IProgressTracker.cs (4)
23/// Opens a scope that will call <see cref="IProgressTracker.ItemCompleted"/> on <paramref name="tracker"/> once 27public static ItemCompletedDisposer ItemCompletedScope(this IProgressTracker tracker, string? description = null) 37private readonly IProgressTracker _tracker; 39public ItemCompletedDisposer(IProgressTracker tracker)
NoOpProgressTracker.cs (1)
9public static readonly IProgressTracker Instance = new NoOpProgressTracker();
Packaging\IPackageInstallerService.cs (1)
26IProgressTracker progressTracker, CancellationToken cancellationToken);
Shared\Extensions\CodeActionExtensions.cs (1)
15public static async Task<Solution> GetRequiredChangedSolutionAsync(this CodeAction codeAction, IProgressTracker progressTracker, CancellationToken cancellationToken)
Workspace\Workspace.cs (2)
60/// when they are applied to workspace via <see cref="TryApplyChanges(Solution, IProgressTracker)"/>. 1277internal virtual bool TryApplyChanges(Solution newSolution, IProgressTracker progressTracker)
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\MSBuildWorkspace.cs (1)
303internal override bool TryApplyChanges(Solution newSolution, IProgressTracker progressTracker)
Microsoft.VisualStudio.LanguageServices (6)
Packaging\PackageInstallerServiceFactory.cs (3)
266IProgressTracker progressTracker, 302IProgressTracker progressTracker, 375IProgressTracker progressTracker, CancellationToken cancellationToken)
Packaging\PackageInstallerServiceFactory_UndoRedo.cs (2)
21IProgressTracker progressTracker, CancellationToken cancellationToken) 42IProgressTracker progressTracker, CancellationToken cancellationToken)
ProjectSystem\VisualStudioWorkspaceImpl.cs (1)
322IProgressTracker progressTracker)