127 references to AsynchronousOperationListenerProvider
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (11)
Classification\SyntacticTaggerTests.cs (4)
50AsynchronousOperationListenerProvider.NullProvider), 52AsynchronousOperationListenerProvider.NullListener, 108AsynchronousOperationListenerProvider.NullProvider), 110AsynchronousOperationListenerProvider.NullListener,
Interactive\BraceMatching\InteractiveBraceHighlightingTests.cs (1)
45AsynchronousOperationListenerProvider.NullProvider);
NavigateTo\NavigateToSearcherTests.cs (4)
130AsynchronousOperationListenerProvider.NullListener, 173AsynchronousOperationListenerProvider.NullListener, 213AsynchronousOperationListenerProvider.NullListener, 252AsynchronousOperationListenerProvider.NullListener,
QuickInfo\SyntacticQuickInfoSourceTests.cs (1)
572AsynchronousOperationListenerProvider.NullListener,
Workspaces\WorkspaceTests_EditorFeatures.cs (1)
48.GetExportedValue<AsynchronousOperationListenerProvider>()
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (9)
AbstractCommandHandlerTestState.cs (4)
236var provider = Workspace.ExportProvider.GetExportedValue<AsynchronousOperationListenerProvider>(); 243var provider = Workspace.ExportProvider.GetExportedValue<AsynchronousOperationListenerProvider>();
BraceHighlighting\AbstractBraceHighlightingTests.cs (1)
49AsynchronousOperationListenerProvider.NullProvider);
LanguageServer\AbstractLanguageServerProtocolTests.cs (2)
395var operations = workspace.ExportProvider.GetExportedValue<AsynchronousOperationListenerProvider>();
NavigateTo\AbstractNavigateToTests.cs (2)
84AsynchronousOperationListenerProvider.NullListener); 158AsynchronousOperationListenerProvider.NullListener);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities2 (1)
Intellisense\TestState.vb (1)
251Dim asynchronousOperationListenerProvider = Workspace.ExportProvider.GetExportedValue(Of AsynchronousOperationListenerProvider)()
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (11)
Completion\CompletionServiceTests.cs (1)
55var waiter = workspace.ExportProvider.GetExportedValue<AsynchronousOperationListenerProvider>().GetWaiter(FeatureAttribute.CompletionSet);
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (1)
4719await workspace.GetService<AsynchronousOperationListenerProvider>().GetWaiter(FeatureAttribute.Workspace).ExpeditedWaitAsync();
Preview\PreviewWorkspaceTests.cs (2)
182var listenerProvider = workspace.ExportProvider.GetExportedValue<AsynchronousOperationListenerProvider>();
RenameTracking\RenameTrackingTestState.cs (2)
216var provider = Workspace.ExportProvider.GetExportedValue<AsynchronousOperationListenerProvider>();
SolutionCrawler\WorkCoordinatorTests.cs (5)
827var listenerProvider = GetListenerProvider(workspace.ExportProvider); 882var listenerProvider = GetListenerProvider(workspace.ExportProvider); 1460var listenerProvider = GetListenerProvider(workspace.ExportProvider); 1665private static AsynchronousOperationListenerProvider GetListenerProvider(ExportProvider provider) 1666=> provider.GetExportedValue<AsynchronousOperationListenerProvider>();
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (8)
IntelliSense\AbstractIntellisenseQuickInfoBuilderTests.vb (2)
55AsynchronousOperationListenerProvider.NullListener, 85AsynchronousOperationListenerProvider.NullListener,
IntelliSense\CompletionServiceTests_Exclusivitiy.vb (1)
58MyBase.New(services, AsynchronousOperationListenerProvider.NullProvider)
IntelliSense\SignatureHelpControllerTests.vb (1)
291Dim asyncListener = AsynchronousOperationListenerProvider.NullListener
KeywordHighlighting\AbstractKeywordHighlightingTests.vb (1)
41AsynchronousOperationListenerProvider.NullProvider)
NavigationBar\NavigationBarControllerTests.vb (1)
299Dim listenerProvider = workspace.ExportProvider.GetExportedValue(Of AsynchronousOperationListenerProvider)()
ReferenceHighlighting\AbstractReferenceHighlightingTests.vb (1)
35AsynchronousOperationListenerProvider.NullProvider)
Rename\RenameTestHelpers.vb (1)
106Dim provider = workspace.ExportProvider.GetExportedValue(Of AsynchronousOperationListenerProvider)
Microsoft.CodeAnalysis.ExternalAccess.Apex (2)
ApexAsynchronousOperationListenerProviderAccessor.cs (2)
18private readonly AsynchronousOperationListenerProvider _implementation; 24AsynchronousOperationListenerProvider implementation,
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
Completion\FSharpCompletionServiceWithProviders.cs (1)
15: base(workspace.Services.SolutionServices, AsynchronousOperationListenerProvider.NullProvider)
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp (1)
NavigateTo\OmniSharpNavigateToSearchService.cs (1)
30AsynchronousOperationListenerProvider.NullListener,
Microsoft.CodeAnalysis.Features (2)
ExternalAccess\VSTypeScript\Api\VSTypeScriptCompletionServiceWithProviders.cs (1)
19: base(workspace.Services.SolutionServices, AsynchronousOperationListenerProvider.NullProvider)
Shared\TestHooks\Legacy\ListenerForwarders.cs (1)
10[assembly: TypeForwardedTo(typeof(Microsoft.CodeAnalysis.Shared.TestHooks.AsynchronousOperationListenerProvider))]
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.InProcOrRemoteHostAnalyzerRunner.cs (1)
36_asyncOperationListener = operationListener ?? AsynchronousOperationListenerProvider.NullListener;
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (7)
Completion\CompletionResolveTests.cs (1)
436public TestCaretOutOfScopeCompletionService(SolutionServices services) : base(services, AsynchronousOperationListenerProvider.NullProvider)
Diagnostics\PullDiagnosticTests.cs (6)
1509var operations = testLspServer.TestWorkspace.ExportProvider.GetExportedValue<AsynchronousOperationListenerProvider>(); 1563var operations = testLspServer.TestWorkspace.ExportProvider.GetExportedValue<AsynchronousOperationListenerProvider>(); 1618var operations = testLspServer.TestWorkspace.ExportProvider.GetExportedValue<AsynchronousOperationListenerProvider>();
Microsoft.CodeAnalysis.Remote.ServiceHub (7)
Services\AsynchronousOperationListener\RemoteAsynchronousOperationListenerService.cs (5)
31AsynchronousOperationListenerProvider.Enable(enable, diagnostics); 42var listenerProvider = exportProvider.GetExports<AsynchronousOperationListenerProvider>().Single().Value; 54var listenerProvider = exportProvider.GetExports<AsynchronousOperationListenerProvider>().Single().Value;
Services\ProcessTelemetry\RemoteProcessTelemetryService.PerformanceReporter.cs (1)
40AsynchronousOperationListenerProvider.NullListener,
Services\SemanticClassification\RemoteSemanticClassificationService.Caching.cs (1)
64AsynchronousOperationListenerProvider.NullListener,
Microsoft.CodeAnalysis.Remote.Workspaces (2)
ServiceHubRemoteHostClient.cs (2)
66AsynchronousOperationListenerProvider listenerProvider, 112(service, cancellationToken) => service.EnableAsync(AsynchronousOperationListenerProvider.IsEnabled, listenerProvider.DiagnosticTokensEnabled, cancellationToken),
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (1)
BraceMatching\BraceHighlightingTests.vb (1)
35AsynchronousOperationListenerProvider.NullProvider)
Microsoft.CodeAnalysis.Workspaces (4)
Shared\TestHooks\AsynchronousOperationListenerProvider.cs (4)
23/// <see cref="AsynchronousOperationListenerProvider" /> in test to get waiter. 27[Export(typeof(AsynchronousOperationListenerProvider))] 39/// those team can enable this without using <see cref="AsynchronousOperationListenerProvider.Enable(bool)" /> API 52/// those team can enable this without using <see cref="AsynchronousOperationListenerProvider.EnableDiagnosticTokens(bool)" /> API
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (4)
AsynchronousOperationListenerExtensions.cs (1)
17await ((AsynchronousOperationListenerProvider)provider).WaitAllAsync(workspace, featureNames).ConfigureAwait(false);
MEF\UseExportProviderAttribute.cs (3)
72AsynchronousOperationListenerProvider.Enable(enable: true, diagnostics: true); 139var waiter = ((AsynchronousOperationListenerProvider)listenerProvider).WaitAllDispatcherOperationAndTasksAsync(workspace: null); 148foreach (var token in ((AsynchronousOperationListenerProvider)listenerProvider).GetTokens())
Microsoft.VisualStudio.IntegrationTest.Utilities (6)
InProcess\InProcComponent.cs (1)
101=> new(GetComponentModel().DefaultExportProvider.GetExport<AsynchronousOperationListenerProvider>().Value);
InProcess\SolutionExplorer_InProc.cs (1)
396var waitingService = new TestWaitingService(GetComponentModel().DefaultExportProvider.GetExportedValue<AsynchronousOperationListenerProvider>());
InProcess\TestWaitingService.cs (3)
17private readonly AsynchronousOperationListenerProvider _provider; 19public TestWaitingService(AsynchronousOperationListenerProvider provider) 79AsynchronousOperationListenerProvider.Enable(enable);
InProcess\VisualStudioWorkspace_InProc.cs (1)
85foreach (var token in ((AsynchronousOperationListenerProvider)listenerProvider).GetTokens())
Microsoft.VisualStudio.LanguageServices (6)
Implementation\GCManager.cs (1)
90currentDelay = new ResettableDelay(s_delayMilliseconds, AsynchronousOperationListenerProvider.NullListener);
Remote\VisualStudioRemoteHostClientProvider.cs (4)
32private readonly AsynchronousOperationListenerProvider _listenerProvider; 41AsynchronousOperationListenerProvider listenerProvider, 75private readonly AsynchronousOperationListenerProvider _listenerProvider; 83AsynchronousOperationListenerProvider listenerProvider,
Telemetry\FileLogger.cs (1)
40_taskQueue = new(AsynchronousOperationListenerProvider.NullListener, TaskScheduler.Default);
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (6)
CodeModel\FileCodeModelTestHelpers.cs (2)
47var listenerProvider = workspace.ExportProvider.GetExportedValue<AsynchronousOperationListenerProvider>();
DocumentOutline\DocumentOutlineTestsBase.cs (2)
142var operations = workspace.ExportProvider.GetExportedValue<AsynchronousOperationListenerProvider>();
ProjectSystemShim\LegacyProject\AnalyzersTests.cs (2)
255var listenerProvider = environment.ExportProvider.GetExportedValue<AsynchronousOperationListenerProvider>();
Microsoft.VisualStudio.LanguageServices.New.IntegrationTests (3)
InProcess\WorkspaceInProcess.cs (3)
36AsynchronousOperationListenerProvider.Enable(true, diagnostics: true); 111var listenerProvider = await GetComponentModelServiceAsync<AsynchronousOperationListenerProvider>(cancellationToken); 132var listenerProvider = await GetComponentModelServiceAsync<AsynchronousOperationListenerProvider>(cancellationToken);
Microsoft.VisualStudio.LanguageServices.Test.Utilities2 (3)
CodeModel\CodeModelTestHelpers.vb (1)
60Dim listenerProvider = workspace.ExportProvider.GetExportedValue(Of AsynchronousOperationListenerProvider)()
ProjectSystemShim\Framework\TestEnvironment.vb (1)
214Await ExportProvider.GetExportedValue(Of AsynchronousOperationListenerProvider)().GetWaiter(FeatureAttribute.Workspace).ExpeditedWaitAsync()
ProjectSystemShim\Framework\WorkspaceChangeWatcher.vb (1)
20Dim listenerProvider = environment.ExportProvider.GetExportedValue(Of AsynchronousOperationListenerProvider)()
Microsoft.VisualStudio.LanguageServices.UnitTests (29)
Progression\SearchGraphQueryTests_NavigateTo.vb (11)
31New Graph(), New SearchGraphQuery("C", NavigateToSearchScope.AllDocuments, threadingContext, AsynchronousOperationListenerProvider.NullListener), GraphContextDirection.Custom) 64New Graph(), New SearchGraphQuery("F", NavigateToSearchScope.AllDocuments, threadingContext, AsynchronousOperationListenerProvider.NullListener), GraphContextDirection.Custom) 97New Graph(), New SearchGraphQuery("M", NavigateToSearchScope.AllDocuments, threadingContext, AsynchronousOperationListenerProvider.NullListener), GraphContextDirection.Custom) 143New Graph(), New SearchGraphQuery("C", NavigateToSearchScope.AllDocuments, threadingContext, AsynchronousOperationListenerProvider.NullListener), GraphContextDirection.Custom) 193New Graph(), New SearchGraphQuery("Goo", NavigateToSearchScope.AllDocuments, threadingContext, AsynchronousOperationListenerProvider.NullListener), GraphContextDirection.Custom) 239New Graph(), New SearchGraphQuery("Z", NavigateToSearchScope.AllDocuments, threadingContext, AsynchronousOperationListenerProvider.NullListener), GraphContextDirection.Custom) 276New Graph(), New SearchGraphQuery("D.B", NavigateToSearchScope.AllDocuments, threadingContext, AsynchronousOperationListenerProvider.NullListener), GraphContextDirection.Custom) 309New Graph(), New SearchGraphQuery("C.B", NavigateToSearchScope.AllDocuments, threadingContext, AsynchronousOperationListenerProvider.NullListener), GraphContextDirection.Custom) 333New Graph(), New SearchGraphQuery("D.B", NavigateToSearchScope.AllDocuments, threadingContext, AsynchronousOperationListenerProvider.NullListener), GraphContextDirection.Custom) 366New Graph(), New SearchGraphQuery("A.D.B", NavigateToSearchScope.AllDocuments, threadingContext, AsynchronousOperationListenerProvider.NullListener), GraphContextDirection.Custom) 399New Graph(), New SearchGraphQuery("A.D.B", NavigateToSearchScope.AllDocuments, threadingContext, AsynchronousOperationListenerProvider.NullListener), GraphContextDirection.Custom)
ProjectSystemShim\VisualStudioProjectTests\AnalyzerReferenceTests.vb (1)
224Dim waiter = environment.ExportProvider.GetExportedValue(Of AsynchronousOperationListenerProvider).GetWaiter(FeatureAttribute.DiagnosticService)
ProjectSystemShim\VisualStudioRuleSetTests.vb (15)
52Dim ruleSetManager = New VisualStudioRuleSetManager(workspace.ExportProvider.GetExportedValue(Of IThreadingContext), fileChangeWatcher, AsynchronousOperationListenerProvider.NullListener) 58Await workspace.GetService(Of AsynchronousOperationListenerProvider)().GetWaiter(FeatureAttribute.Workspace).ExpeditedWaitAsync() 62Await workspace.GetService(Of AsynchronousOperationListenerProvider)().GetWaiter(FeatureAttribute.Workspace).ExpeditedWaitAsync() 96Dim ruleSetManager = New VisualStudioRuleSetManager(workspace.ExportProvider.GetExportedValue(Of IThreadingContext), fileChangeWatcher, AsynchronousOperationListenerProvider.NullListener) 102Await workspace.GetService(Of AsynchronousOperationListenerProvider)().GetWaiter(FeatureAttribute.Workspace).ExpeditedWaitAsync() 106Await workspace.GetService(Of AsynchronousOperationListenerProvider)().GetWaiter(FeatureAttribute.Workspace).ExpeditedWaitAsync() 152Await workspace.GetService(Of AsynchronousOperationListenerProvider)().GetWaiter(FeatureAttribute.Workspace).ExpeditedWaitAsync() 190Await workspace.GetService(Of AsynchronousOperationListenerProvider)().GetWaiter(FeatureAttribute.Workspace).ExpeditedWaitAsync() 200Await workspace.GetService(Of AsynchronousOperationListenerProvider)().GetWaiter(FeatureAttribute.Workspace).ExpeditedWaitAsync() 206Await workspace.GetService(Of AsynchronousOperationListenerProvider)().GetWaiter(FeatureAttribute.Workspace).ExpeditedWaitAsync() 230Dim ruleSetManager = New VisualStudioRuleSetManager(workspace.ExportProvider.GetExportedValue(Of IThreadingContext), fileChangeWatcher, AsynchronousOperationListenerProvider.NullListener) 238Await workspace.GetService(Of AsynchronousOperationListenerProvider)().GetWaiter(FeatureAttribute.Workspace).ExpeditedWaitAsync() 244Await workspace.GetService(Of AsynchronousOperationListenerProvider)().GetWaiter(FeatureAttribute.Workspace).ExpeditedWaitAsync() 268Dim ruleSetManager = New VisualStudioRuleSetManager(workspace.ExportProvider.GetExportedValue(Of IThreadingContext), fileChangeWatcher, AsynchronousOperationListenerProvider.NullListener) 272Await workspace.GetService(Of AsynchronousOperationListenerProvider)().GetWaiter(FeatureAttribute.Workspace).ExpeditedWaitAsync()
SolutionExplorer\AnalyzerCommandHandlerTests.vb (1)
25Dim handler = New AnalyzersCommandHandler(tracker:=Nothing, analyzerReferenceManager:=Nothing, threadingContext:=Nothing, AsynchronousOperationListenerProvider.NullProvider, serviceProvider:=Nothing)
SolutionExplorer\SourceGeneratorItemTests.vb (1)
246Dim service = workspace.GetService(Of AsynchronousOperationListenerProvider)
Roslyn.VisualStudio.Next.UnitTests (2)
Remote\RemoteHostClientServiceFactoryTests.cs (2)
41var listenerProvider = exportProvider.GetExportedValue<AsynchronousOperationListenerProvider>();