2 implementations of GetListener
Microsoft.CodeAnalysis.Workspaces (2)
Shared\TestHooks\AsynchronousOperationListenerProvider.cs (1)
80public IAsynchronousOperationListener GetListener(string featureName)
Shared\TestHooks\AsynchronousOperationListenerProvider+NullListenerProvider.cs (1)
11public IAsynchronousOperationListener GetListener(string featureName) => NullListener;
125 references to GetListener
IdeBenchmarks (2)
InheritanceMargin\InheritanceMarginGlyphBenchmarks.cs (1)
147_listener = listenerProvider.GetListener(FeatureAttribute.InheritanceMargin);
SQLitePersistentStorageBenchmark.cs (1)
65var asyncListener = _workspace.ExportProvider.GetExportedValue<IAsynchronousOperationListenerProvider>().GetListener(FeatureAttribute.PersistentStorage);
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
EventHookup\EventHookupCommandHandler.cs (1)
64_asyncListener = listenerProvider.GetListener(FeatureAttribute.EventHookup);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
EncapsulateField\EncapsulateFieldTestState.cs (1)
57var waiter = (IAsynchronousOperationWaiter)provider.GetListener(FeatureAttribute.EncapsulateField);
Microsoft.CodeAnalysis.EditorFeatures (33)
AddImports\AbstractAddImportsPasteCommandHandler.cs (1)
52_listener = listenerProvider.GetListener(FeatureAttribute.AddImportsOnPaste);
BraceMatching\BraceHighlightingViewTaggerProvider.cs (1)
48: base(threadingContext, globalOptions, visibilityTracker, listenerProvider.GetListener(FeatureAttribute.BraceHighlighting))
BracePairs\BracePairsTaggerProvider.cs (1)
48listenerProvider.GetListener(FeatureAttribute.BracePairs))
Classification\CopyPasteAndPrintingClassificationBufferTaggerProvider.cs (1)
47_asyncListener = listenerProvider.GetListener(FeatureAttribute.Classification);
Classification\Semantic\AbstractSemanticOrEmbeddedClassificationViewTaggerProvider.cs (1)
50: base(threadingContext, globalOptions, visibilityTracker, listenerProvider.GetListener(FeatureAttribute.Classification))
Classification\Syntactic\SyntacticClassificationTaggerProvider.cs (1)
46_listener = listenerProvider.GetListener(FeatureAttribute.Classification);
CodeDefinitionWindow\DefinitionContextTracker.cs (1)
66_asyncListener = listenerProvider.GetListener(FeatureAttribute.CodeDefinitionWindow);
Diagnostics\AbstractDiagnosticsAdornmentTaggerProvider.cs (1)
26: base(threadingContext, diagnosticService, analyzerService, globalOptions, visibilityTracker, listenerProvider.GetListener(FeatureAttribute.ErrorSquiggles))
Diagnostics\DiagnosticsClassificationTaggerProvider.cs (1)
52: base(threadingContext, diagnosticService, analyzerService, editorOptionsService.GlobalOptions, visibilityTracker, listenerProvider.GetListener(FeatureAttribute.Classification))
EditAndContinue\ActiveStatementTaggerProvider.cs (1)
50: base(threadingContext, globalOptions, visibilityTracker, listenerProvider.GetListener(FeatureAttribute.Classification))
EditAndContinue\ActiveStatementTrackingService.cs (1)
49=> new ActiveStatementTrackingService(workspaceServices.Workspace, _listenerProvider.GetListener(FeatureAttribute.EditAndContinue));
EncapsulateField\AbstractEncapsulateFieldCommandHandler.cs (1)
44_listener = listenerProvider.GetListener(FeatureAttribute.EncapsulateField);
ExternalAccess\VSTypeScript\Api\VSTypeScriptAsynchronousTaggerProvider.cs (2)
22: base(threadingContext, globalOptions.Service, visibilityTracker: null, asyncListenerProvider.GetListener(FeatureAttribute.Classification)) 31: base(threadingContext, globalOptions.Service, visibilityTracker, asyncListenerProvider.GetListener(FeatureAttribute.Classification))
ExtractMethod\ExtractMethodCommandHandler.cs (1)
69_asyncListener = asyncListenerProvider.GetListener(FeatureAttribute.ExtractMethod);
FindReferences\FindReferencesCommandHandler.cs (1)
51_asyncListener = listenerProvider.GetListener(FeatureAttribute.FindReferences);
GoToBase\GoToBaseCommandHandler.cs (1)
41listenerProvider.GetListener(FeatureAttribute.GoToBase),
GoToDefinition\GoToDefinitionCommandHandler.cs (1)
50_listener = listenerProvider.GetListener(FeatureAttribute.GoToDefinition);
GoToImplementation\GoToImplementationCommandHandler.cs (1)
41listenerProvider.GetListener(FeatureAttribute.GoToImplementation),
InlineHints\InlineHintsDataTaggerProvider.cs (2)
58: base(threadingContext, globalOptions, visibilityTracker, listenerProvider.GetListener(FeatureAttribute.InlineHints)) 60_listener = listenerProvider.GetListener(FeatureAttribute.InlineHints);
InlineRename\CommandHandlers\AbstractRenameCommandHandler.cs (1)
31_listener = asynchronousOperationListenerProvider.GetListener(FeatureAttribute.Rename);
InlineRename\InlineRenameService.cs (1)
64_asyncListener = listenerProvider.GetListener(FeatureAttribute.Rename);
IntelliSense\AsyncCompletion\CompletionSourceProvider.cs (1)
42_listener = listenerProvider.GetListener(FeatureAttribute.CompletionSet);
IntelliSense\QuickInfo\QuickInfoSourceProvider.cs (1)
47_listener = listenerProvider.GetListener(FeatureAttribute.QuickInfo);
KeywordHighlighting\HighlighterViewTaggerProvider.cs (1)
57: base(threadingContext, globalOptions, visibilityTracker, listenerProvider.GetListener(FeatureAttribute.KeywordHighlighting))
LanguageServer\AlwaysActiveLanguageClientEventListener.cs (1)
42_asynchronousOperationListener = listenerProvider.GetListener(FeatureAttribute.LanguageServer);
NavigationBar\NavigationBarControllerFactoryService.cs (1)
35_asyncListener = listenerProvider.GetListener(FeatureAttribute.NavigationBar);
ReferenceHighlighting\ReferenceHighlightingViewTaggerProvider.cs (1)
59: base(threadingContext, globalOptions, visibilityTracker, listenerProvider.GetListener(FeatureAttribute.ReferenceHighlighting))
Remote\SolutionChecksumUpdater.cs (1)
51var listener = listenerProvider.GetListener(FeatureAttribute.SolutionChecksumUpdater);
RenameTracking\RenameTrackingTaggerProvider.cs (1)
62_asyncListener = listenerProvider.GetListener(FeatureAttribute.RenameTracking);
SolutionEvents\HostLegacySolutionEventsWorkspaceEventListener.cs (1)
41listenerProvider.GetListener(FeatureAttribute.SolutionCrawlerUnitTesting),
Structure\AbstractStructureTaggerProvider.cs (1)
59: base(threadingContext, editorOptionsService.GlobalOptions, visibilityTracker, listenerProvider.GetListener(FeatureAttribute.Outlining))
Microsoft.CodeAnalysis.EditorFeatures.Cocoa (10)
FixMultipleOccurrencesService.cs (1)
33listenerProvider.GetListener(FeatureAttribute.LightBulb);
NavigableSymbolService.cs (1)
38_listener = listenerProvider.GetListener(FeatureAttribute.NavigableSymbols);
NavigationCommandHandlers\FindBaseSymbolsCommandHandler.cs (1)
46_asyncListener = listenerProvider.GetListener(FeatureAttribute.FindReferences);
NavigationCommandHandlers\FindDerivedSymbolsCommandHandler.cs (1)
45_asyncListener = listenerProvider.GetListener(FeatureAttribute.FindReferences);
NavigationCommandHandlers\FindExtensionMethodsCommandHandler.cs (1)
50_asyncListener = listenerProvider.GetListener(FeatureAttribute.FindReferences);
NavigationCommandHandlers\FindImplementingMembersCommandHandler.cs (1)
48_asyncListener = listenerProvider.GetListener(FeatureAttribute.FindReferences);
NavigationCommandHandlers\FindMemberOverloadsCommandHandler.cs (1)
43_asyncListener = listenerProvider.GetListener(FeatureAttribute.FindReferences);
NavigationCommandHandlers\FindReferencesOfOverloadsCommandHandler.cs (1)
53_asyncListener = listenerProvider.GetListener(FeatureAttribute.FindReferences);
SignatureHelpControllerProvider.cs (1)
48_listener = listenerProvider.GetListener(FeatureAttribute.SignatureHelp);
SuggestedActionsSourceProvider.cs (1)
84OperationListener = listenerProvider.GetListener(FeatureAttribute.LightBulb);
Microsoft.CodeAnalysis.EditorFeatures.Wpf (10)
Adornments\AbstractAdornmentManagerProvider.cs (1)
36AsyncListener = listenerProvider.GetListener(this.FeatureAttributeName);
BackgroundWorkIndicator\WpfBackgroundWorkIndicatorFactory.cs (1)
38_listener = listenerProvider.GetListener(FeatureAttribute.QuickInfo);
InlineHints\InlineHintsTaggerProvider.cs (1)
67AsynchronousOperationListener = listenerProvider.GetListener(FeatureAttribute.InlineHints);
InlineRename\UI\Adornment\RenameFlyout.xaml.cs (1)
43_listener = listenerProvider.GetListener(FeatureAttribute.InlineRenameFlyout);
LineSeparators\LineSeparatorTaggerProvider.cs (1)
60: base(threadingContext, globalOptions, visibilityTracker, listenerProvider.GetListener(FeatureAttribute.LineSeparators))
NavigableSymbols\NavigableSymbolService.cs (1)
38_listener = listenerProvider.GetListener(FeatureAttribute.NavigableSymbols);
SignatureHelp\SignatureHelpControllerProvider.cs (1)
48_listener = listenerProvider.GetListener(FeatureAttribute.SignatureHelp);
StringIndentation\StringIndentationTaggerProvider.cs (1)
53: base(threadingContext, globalOptions, visibilityTracker, listenerProvider.GetListener(FeatureAttribute.StringIndentation))
Suggestions\FixAll\FixMultipleOccurrencesService.cs (1)
33listenerProvider.GetListener(FeatureAttribute.LightBulb);
Suggestions\SuggestedActionsSourceProvider.cs (1)
84OperationListener = listenerProvider.GetListener(FeatureAttribute.LightBulb);
Microsoft.CodeAnalysis.ExternalAccess.Razor (1)
RazorAsynchronousOperationListenerProviderAccessor.cs (1)
28var inner = _implementation.GetListener(featureName);
Microsoft.CodeAnalysis.Features (5)
Completion\CompletionService.ProviderManager.cs (1)
45listenerProvider.GetListener(FeatureAttribute.CompletionSet),
Completion\Providers\ImportCompletionProvider\AbstractImportCompletionCacheServiceFactory.cs (1)
55_listenerProvider.GetListener(FeatureAttribute.CompletionSet),
DesignerAttribute\DesignerAttributeDiscoveryService.cs (1)
51_listener = listenerProvider.GetListener(FeatureAttribute.DesignerAttributes);
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingSolutionCrawlerRegistrationService.cs (1)
50_listener = listenerProvider.GetListener(FeatureAttribute.SolutionCrawlerUnitTesting);
SolutionCrawler\SolutionCrawlerRegistrationService.cs (1)
44_listener = listenerProvider.GetListener(FeatureAttribute.SolutionCrawlerLegacy);
Microsoft.CodeAnalysis.LanguageServer.Protocol (5)
Features\Diagnostics\DiagnosticAnalyzerService.cs (1)
51Listener = listenerProvider.GetListener(FeatureAttribute.DiagnosticService);
Features\Diagnostics\DiagnosticService.cs (1)
51_eventQueue = new TaskQueue(listenerProvider.GetListener(FeatureAttribute.DiagnosticService), TaskScheduler.Default);
Handler\References\FindAllReferencesHandler.cs (1)
39_asyncListener = asynchronousOperationListenerProvider.GetListener(FeatureAttribute.LanguageServer);
Handler\SemanticTokens\SemanticTokensRefreshQueue.cs (1)
66_asyncListener = asynchronousOperationListenerProvider.GetListener(FeatureAttribute.Classification);
Handler\Symbols\WorkspaceSymbolsHandler.cs (1)
48_asyncListener = listenerProvider.GetListener(FeatureAttribute.NavigateTo);
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (1)
EncapsulateField\EncapsulateFieldTestState.vb (1)
41Dim waiter = DirectCast(provider.GetListener(FeatureAttribute.EncapsulateField), IAsynchronousOperationWaiter)
Microsoft.CodeAnalysis.Workspaces (4)
FindSymbols\SymbolTree\SymbolTreeInfoCacheServiceFactory.cs (1)
23_listener = listenerProvider.GetListener(FeatureAttribute.SolutionCrawlerLegacy);
Notification\AbstractGlobalOperationNotificationService.cs (1)
33_eventQueue = new TaskQueue(listenerProvider.GetListener(FeatureAttribute.GlobalOperation), TaskScheduler.Default);
Storage\SQLite\v2\SQLitePersistentStorageService.cs (1)
34_asyncListener = asyncOperationListenerProvider.GetListener(FeatureAttribute.PersistentStorage);
Workspace\Host\TaskScheduler\WorkspaceAsynchronousOperationListenerProvider.cs (1)
21=> _listener = listenerProvider.GetListener(FeatureAttribute.Workspace);
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
AsynchronousOperationListenerExtensions.cs (1)
21=> (IAsynchronousOperationWaiter)provider.GetListener(featureName);
Microsoft.VisualStudio.IntegrationTest.Setup (2)
AsyncCompletionTracker.cs (1)
46var listener = _asynchronousOperationListenerProvider.GetListener(FeatureAttribute.CompletionSet);
IntegrationTestServiceCommands.cs (1)
146s_runningDocTableEventListener = new RunningDocumentTableEventListener(listenerProvider.GetListener(FeatureAttribute.Workspace));
Microsoft.VisualStudio.LanguageServices (36)
CallHierarchy\CallHierarchyCommandHandler.cs (1)
56_listener = asynchronousOperationListenerProvider.GetListener(FeatureAttribute.CallHierarchy);
CallHierarchy\CallHierarchyProvider.cs (1)
49AsyncListener = listenerProvider.GetListener(FeatureAttribute.CallHierarchy);
DesignerAttribute\VisualStudioDesignerAttributeService.cs (1)
73var listener = asynchronousOperationListenerProvider.GetListener(FeatureAttribute.DesignerAttributes);
Diagnostics\VisualStudioDiagnosticAnalyzerProvider.WorkspaceEventListener.cs (1)
40_listener = listenerProvider.GetListener(nameof(Workspace));
Diagnostics\VisualStudioDiagnosticAnalyzerService.cs (1)
65_listener = listenerProvider.GetListener(FeatureAttribute.DiagnosticService);
ErrorReporting\VisualStudioErrorReportingService.cs (1)
34_listener = listenerProvider.GetListener(FeatureAttribute.Workspace);
ErrorReporting\VisualStudioInfoBar.cs (1)
44_listener = listenerProvider.GetListener(FeatureAttribute.InfoBar);
FindReferences\FindReferencesTableControlEventProcessorProvider.cs (1)
41_listener = asyncProvider.GetListener(FeatureAttribute.FindReferences);
FindReferences\StreamingFindUsagesPresenter.cs (1)
123_asyncListener = asyncListenerProvider.GetListener(FeatureAttribute.FindReferences);
InheritanceMargin\InheritanceGlyphFactoryProvider.cs (1)
58_listener = listenerProvider.GetListener(FeatureAttribute.InheritanceMargin);
InheritanceMargin\InheritanceMarginTaggerProvider.cs (1)
51listenerProvider.GetListener(FeatureAttribute.InheritanceMargin))
InheritanceMargin\InheritanceMarginViewMarginProvider.cs (1)
82var listener = _listenerProvider.GetListener(FeatureAttribute.InheritanceMargin);
LanguageService\AbstractCreateServicesOnTextViewConnection.cs (1)
56listenerProvider.GetListener(FeatureAttribute.CompletionSet),
LanguageService\AbstractLanguageService`2.VsCodeWindowManager.cs (1)
250var asyncListener = asyncListenerProvider.GetListener(FeatureAttribute.DocumentOutline);
Library\AbstractObjectList.cs (1)
319var asynchronousOperationListener = LibraryManager.ComponentModel.GetService<IAsynchronousOperationListenerProvider>().GetListener(FeatureAttribute.LibraryManager);
Library\ObjectBrowser\AbstractObjectBrowserLibraryManager.cs (1)
492var asynchronousOperationListener = ComponentModel.GetService<IAsynchronousOperationListenerProvider>().GetListener(FeatureAttribute.LibraryManager);
NavigateTo\RoslynSearchItemsSourceProvider.cs (1)
55_asyncListener = listenerProvider.GetListener(FeatureAttribute.NavigateTo);
NavigateTo\VisualStudioNavigateToItemProviderFactory.cs (1)
37_asyncListener = listenerProvider.GetListener(FeatureAttribute.NavigateTo);
Packaging\PackageInstallerServiceFactory.cs (1)
126_listener = listenerProvider.GetListener(FeatureAttribute.PackageInstaller);
PdbSourceDocument\PdbSourceDocumentOutputWindowLogger.cs (1)
41var asyncListener = listenerProvider.GetListener(nameof(PdbSourceDocumentOutputWindowLogger));
Progression\GraphProvider.cs (1)
51_asyncListener = listenerProvider.GetListener(FeatureAttribute.GraphProvider);
ProjectSystem\FileChangeWatcher.cs (1)
52listenerProvider.GetListener(FeatureAttribute.Workspace),
ProjectSystem\OpenTextBufferProvider.cs (1)
73var listener = listenerProvider.GetListener(FeatureAttribute.Workspace);
ProjectSystem\RuleSets\VisualStudioRuleSetManagerFactory.cs (1)
31_listener = listenerProvider.GetListener(FeatureAttribute.RuleSetEditor);
ProjectSystem\VisualStudioWorkspaceImpl.OpenFileTracker.cs (1)
70_asynchronousOperationListener = componentModel.GetService<IAsynchronousOperationListenerProvider>().GetListener(FeatureAttribute.Workspace);
RoslynPackage.cs (1)
189using var token = listenerProvider.GetListener(FeatureAttribute.Workspace).BeginAsyncOperation(nameof(LoadOptionPersistersAsync));
Snippets\AbstractSnippetInfoService.cs (1)
53_waiter = listenerProvider.GetListener(FeatureAttribute.Snippets);
SymbolSearch\AbstractDelayStartedService.cs (1)
69listenerProvider.GetListener(FeatureAttribute.Workspace),
TableDataSource\Suppression\VisualStudioDiagnosticListTableCommandHandler.cs (1)
67_listener = listenerProvider.GetListener(FeatureAttribute.ErrorList);
TableDataSource\Suppression\VisualStudioSuppressionFixService.cs (1)
89_listener = listenerProvider.GetListener(FeatureAttribute.ErrorList);
TableDataSource\VisualStudioDiagnosticListTable.cs (1)
51_asynchronousOperationListener = listenerProvider.GetListener(FeatureAttribute.DiagnosticService);
TaskList\ExternalErrorDiagnosticUpdateSource.cs (1)
82: this(workspace, diagnosticService, notificationService, listenerProvider.GetListener(FeatureAttribute.ErrorList), threadingContext.DisposalToken)
TaskList\VisualStudioTaskListService.cs (1)
73asynchronousOperationListenerProvider.GetListener(FeatureAttribute.TaskList),
ValueTracking\ValueTrackingCommandHandler.cs (1)
73_listener = listenerProvider.GetListener(FeatureAttribute.ValueTracking);
Workspace\SourceGeneratedFileManager.cs (1)
89_listener = listenerProvider.GetListener(FeatureAttribute.SourceGenerators);
Workspace\VisualStudioWorkspaceStatusServiceFactory.cs (1)
49_listener = listenerProvider.GetListener(FeatureAttribute.Workspace);
Microsoft.VisualStudio.LanguageServices.CSharp (1)
Interactive\CSharpVsInteractiveWindowProvider.cs (1)
52_listener = listenerProvider.GetListener(FeatureAttribute.InteractiveEvaluator);
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
PersistentStorage\SQLiteV2PersistentStorageTests.cs (1)
30exportProvider.GetExports<IAsynchronousOperationListenerProvider>().Single().Value.GetListener(FeatureAttribute.PersistentStorage),
Microsoft.VisualStudio.LanguageServices.Implementation (3)
CodeModel\ProjectCodeModelFactory.cs (1)
59Listener = listenerProvider.GetListener(FeatureAttribute.CodeModel);
SolutionExplorer\AnalyzersCommandHandler.cs (1)
92_listener = listenerProvider.GetListener(FeatureAttribute.RuleSetEditor);
SolutionExplorer\SourceGeneratedFileItems\SourceGeneratedFileItemSourceProvider.cs (1)
32_asyncListener = asyncListenerProvider.GetListener(FeatureAttribute.SourceGenerators);
Microsoft.VisualStudio.LanguageServices.UnitTests (8)
Diagnostics\DiagnosticTableDataSourceTests.vb (1)
669Dim listener = listenerProvider.GetListener(FeatureAttribute.DiagnosticService)
Diagnostics\ExternalDiagnosticUpdateSourceTests.vb (4)
448Dim waiter = TryCast(listenerProvider.GetListener(FeatureAttribute.ErrorList), AsynchronousOperationListener) 485Dim diagnosticServiceWaiter = TryCast(listenerProvider.GetListener(FeatureAttribute.DiagnosticService), AsynchronousOperationListener) 502Dim waiter = TryCast(listenerProvider.GetListener(FeatureAttribute.ErrorList), AsynchronousOperationListener) 551Dim diagnosticServiceWaiter = TryCast(listenerProvider.GetListener(FeatureAttribute.DiagnosticService), AsynchronousOperationListener)
ProjectSystemShim\VisualStudioRuleSetTests.vb (2)
142Dim listener = listenerProvider.GetListener("test") 183Dim listener = listenerProvider.GetListener("test")
SolutionExplorer\SourceGeneratorItemTests.vb (1)
240Dim asyncListener = workspace.GetService(Of IAsynchronousOperationListenerProvider).GetListener(FeatureAttribute.SourceGenerators)