114 instantiations of PartNotDiscoverableAttribute
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (7)
Completion\CompletionProviders\SnippetCompletionProviderTests.cs (1)
132[ExportLanguageService(typeof(ISnippetInfoService), LanguageNames.CSharp, ServiceLayer.Test), Shared, PartNotDiscoverable]
Formatting\CodeCleanupTests.TestFixers.cs (4)
50[PartNotDiscoverable, Shared, ExportCodeFixProvider(LanguageNames.CSharp)] 62[PartNotDiscoverable, Shared, ExportCodeFixProvider(LanguageNames.CSharp)] 72[PartNotDiscoverable, Shared, ExportCodeFixProvider(LanguageNames.CSharp)] 123[PartNotDiscoverable, Shared, ExportCodeFixProvider(LanguageNames.CSharp)]
StringCopyPaste\TestStringCopyPasteService.cs (1)
16[ExportWorkspaceService(typeof(IStringCopyPasteService), ServiceLayer.Test), Shared, PartNotDiscoverable]
TaskList\NoCompilationTaskListTests.cs (1)
52[PartNotDiscoverable]
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (2)
Copilot\CSharpImplementNotImplementedExceptionFixProviderTests.cs (2)
612[ExportLanguageService(typeof(ICopilotOptionsService), LanguageNames.CSharp), Shared, PartNotDiscoverable] 635[ExportLanguageService(typeof(ICopilotCodeAnalysisService), LanguageNames.CSharp), Shared, PartNotDiscoverable]
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (17)
ChangeSignature\TestChangeSignatureOptionsService.cs (1)
15[ExportWorkspaceService(typeof(IChangeSignatureOptionsService), ServiceLayer.Test), Shared, PartNotDiscoverable]
Diagnostics\GenerateType\TestGenerateTypeOptionsService.cs (1)
18[ExportWorkspaceService(typeof(IGenerateTypeOptionsService), ServiceLayer.Test), Shared, PartNotDiscoverable]
DocumentTracking\FirstDocumentIsActiveAndVisibleDocumentTrackingService.cs (1)
31[ExportWorkspaceServiceFactory(typeof(IDocumentTrackingService), ServiceLayer.Test), Shared, PartNotDiscoverable]
EditAndContinue\MockManagedHotReloadService.cs (1)
16[Export(typeof(IManagedHotReloadService)), PartNotDiscoverable, Shared]
ExtractInterface\TestExtractInterfaceOptions.cs (1)
16[ExportWorkspaceService(typeof(IExtractInterfaceOptionsService), ServiceLayer.Test), Shared, PartNotDiscoverable]
FindUsages\StubStreamingFindUsagesPresenter.cs (1)
16[PartNotDiscoverable]
MoveStaticMembers\TestMoveStaticMembersService.cs (1)
18[PartNotDiscoverable]
MoveToNamespace\TestMoveToNamespaceOptionsService.cs (1)
17[PartNotDiscoverable]
NavigateTo\AbstractNavigateToTests.cs (2)
244[ExportWorkspaceServiceFactory(typeof(IDocumentTrackingService), ServiceLayer.Test), Shared, PartNotDiscoverable] 260[PartNotDiscoverable, Shared]
Notification\TestGlobalOperationNotificationService.cs (1)
15[Export(typeof(IGlobalOperationNotificationService)), PartNotDiscoverable, Shared]
Preview\MockPreviewPaneService.cs (1)
18[ExportWorkspaceService(typeof(IPreviewPaneService), ServiceLayer.Test), Shared, PartNotDiscoverable]
RenameTracking\MockPreviewDialogService.cs (1)
15[ExportWorkspaceService(typeof(IPreviewDialogService), ServiceLayer.Test), Shared, PartNotDiscoverable]
Workspaces\NoCompilationContentTypeLanguageService.cs (1)
15[ExportLanguageService(typeof(IContentTypeLanguageService), NoCompilationConstants.LanguageName, ServiceLayer.Test), Shared, PartNotDiscoverable]
Workspaces\TestAddMetadataReferenceCodeActionOperationFactoryWorkspaceService.cs (1)
15[ExportWorkspaceService(typeof(IAddMetadataReferenceCodeActionOperationFactoryWorkspaceService), ServiceLayer.Test), Shared, PartNotDiscoverable]
Workspaces\TestFormattingRuleFactoryServiceFactory.cs (1)
17[ExportWorkspaceServiceFactory(typeof(IHostDependentFormattingRuleFactoryService), ServiceLayer.Test), Shared, PartNotDiscoverable]
Workspaces\WorkspaceTestLogger.cs (1)
13[ExportWorkspaceService(typeof(IWorkspaceTestLogger), ServiceLayer.Host), Shared, PartNotDiscoverable]
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities2 (3)
Utilities\GoToHelpers\MockDocumentNavigationServiceFactory.vb (1)
11<ExportWorkspaceServiceFactory(GetType(IDocumentNavigationService), ServiceLayer.Test), [Shared], PartNotDiscoverable>
Utilities\GoToHelpers\MockSymbolNavigationServiceFactory.vb (1)
11<ExportWorkspaceServiceFactory(GetType(ISymbolNavigationService), ServiceLayer.Test), [Shared], PartNotDiscoverable>
Utilities\MockSymbolNavigationServiceProvider.vb (1)
18<ExportWorkspaceServiceFactory(GetType(ISymbolNavigationService), ServiceLayer.Test), [Shared], PartNotDiscoverable>
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (5)
CodeRefactorings\CodeRefactoringServiceTest.cs (1)
57[ExportCodeRefactoringProvider(InternalLanguageNames.TypeScript, Name = "TypeScript CodeRefactoring Provider"), Shared, PartNotDiscoverable]
CodeRefactorings\ErrorCases\CodeRefactoringExceptionInComputeRefactorings.cs (1)
17[PartNotDiscoverable]
CodeRefactorings\ErrorCases\CodeRefactoringExceptionInComputeRefactoringsAsync.cs (1)
17[PartNotDiscoverable]
LanguageServer\VSTypeScriptHandlerTests.cs (1)
144[ExportTypeScriptLspServiceFactory(typeof(TypeScriptHandler)), PartNotDiscoverable, Shared]
Options\GlobalOptionsTests.cs (1)
38[Export(typeof(IGlobalOptionService)), Shared, PartNotDiscoverable]
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (23)
Classification\ClassificationTests.vb (1)
332<ExportLanguageService(GetType(IClassificationService), NoCompilationConstants.LanguageName, ServiceLayer.Test), [Shared], PartNotDiscoverable>
CodeFixes\CodeFixServiceTests.vb (2)
300<ExportLanguageService(GetType(ICopilotOptionsService), NoCompilationConstants.LanguageName, ServiceLayer.Test), [Shared], PartNotDiscoverable> 330<ExportLanguageService(GetType(ICopilotCodeAnalysisService), NoCompilationConstants.LanguageName, ServiceLayer.Test), [Shared], PartNotDiscoverable>
IntelliSense\CompletionServiceTests.vb (1)
70<PartNotDiscoverable>
IntelliSense\CompletionServiceTests_Exclusivitiy.vb (3)
98<PartNotDiscoverable> 111<PartNotDiscoverable> 124<PartNotDiscoverable>
IntelliSense\CSharpCompletionCommandHandlerTests.vb (12)
4194<PartNotDiscoverable> 5414<PartNotDiscoverable> 5427<PartNotDiscoverable> 8203<PartNotDiscoverable> 8246<PartNotDiscoverable> 9586<PartNotDiscoverable> 9674<PartNotDiscoverable> 10252<PartNotDiscoverable> 10313<PartNotDiscoverable> 10622<PartNotDiscoverable> 10759<PartNotDiscoverable> 10909<PartNotDiscoverable>
IntelliSense\CSharpCompletionCommandHandlerTests_DefaultsSource.vb (2)
419<PartNotDiscoverable> 625<ExportLanguageServiceFactory(GetType(CompletionService), LanguageNames.CSharp), [Shared], PartNotDiscoverable>
IntelliSense\VisualBasicCompletionCommandHandlerTests.vb (2)
969<PartNotDiscoverable> 3413<ExportLanguageService(GetType(ISnippetInfoService), LanguageNames.VisualBasic, ServiceLayer.Test), [Shared], PartNotDiscoverable>
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (2)
Testing\RazorTestLanguageServerFactory.cs (1)
21[PartNotDiscoverable]
Testing\RazorTestWorkspaceRegistrationService.cs (1)
14[Shared, PartNotDiscoverable]
Microsoft.CodeAnalysis.Features.Test.Utilities (3)
BrokeredServices\MockServiceBrokerProvider.cs (1)
12[Export(typeof(IServiceBrokerProvider)), PartNotDiscoverable, Shared]
EditAndContinue\MockHostWorkspaceProvider.cs (1)
12[Export(typeof(IHostWorkspaceProvider)), PartNotDiscoverable, Shared]
Workspaces\TestSymbolRenamedCodeActionOperationFactoryWorkspaceService.cs (1)
15[ExportWorkspaceService(typeof(ISymbolRenamedCodeActionOperationFactoryWorkspaceService), ServiceLayer.Test), Shared, PartNotDiscoverable]
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (25)
Commands\ExecuteWorkspaceCommandTests.cs (1)
46[ExportCSharpVisualBasicStatelessLspService(typeof(TestWorkspaceCommandHandler)), Shared, PartNotDiscoverable]
Diagnostics\AbstractPullDiagnosticTestsBase.cs (1)
371[DiagnosticAnalyzer(InternalLanguageNames.TypeScript), PartNotDiscoverable]
Diagnostics\AdditionalFileDiagnosticsTests.cs (1)
120[DiagnosticAnalyzer(LanguageNames.CSharp), PartNotDiscoverable]
Diagnostics\DiagnosticsPullCacheTests.cs (1)
134[Export(typeof(IDiagnosticSourceProvider)), Shared, PartNotDiscoverable]
Diagnostics\WorkspaceProjectDiagnosticsTests.cs (1)
69[DiagnosticAnalyzer(LanguageNames.CSharp), PartNotDiscoverable]
HandlerTests.cs (8)
306[ExportCSharpVisualBasicStatelessLspService(typeof(TestDocumentHandler)), PartNotDiscoverable, Shared] 328[ExportCSharpVisualBasicStatelessLspService(typeof(TestNonMutatingDocumentHandler)), PartNotDiscoverable, Shared] 350[ExportCSharpVisualBasicStatelessLspService(typeof(TestRequestHandlerWithNoParams)), PartNotDiscoverable, Shared] 386[ExportCSharpVisualBasicLspServiceFactory(typeof(TestNotificationHandler)), PartNotDiscoverable, Shared] 416[ExportCSharpVisualBasicLspServiceFactory(typeof(TestNotificationWithoutParamsHandler)), PartNotDiscoverable, Shared] 430[ExportCSharpVisualBasicStatelessLspService(typeof(TestLanguageSpecificHandler)), PartNotDiscoverable, Shared] 454[ExportCSharpVisualBasicStatelessLspService(typeof(TestLanguageSpecificHandlerWithDifferentParams)), PartNotDiscoverable, Shared] 478[ExportCSharpVisualBasicStatelessLspService(typeof(TestDuplicateLanguageSpecificHandler)), PartNotDiscoverable, Shared]
Initialize\LocaleTests.cs (1)
81[ExportCSharpVisualBasicStatelessLspService(typeof(LocaleTestHandler)), PartNotDiscoverable, Shared]
InlineCompletions\TestSnippetInfoService.cs (1)
17[ExportLanguageService(typeof(ISnippetInfoService), LanguageNames.CSharp), Shared, PartNotDiscoverable]
MapCode\MapCodeTests.cs (1)
25[ExportLanguageService(typeof(IMapCodeService), language: LanguageNames.CSharp, layer: ServiceLayer.Test), Shared, PartNotDiscoverable]
Ordering\FailingMutatingRequestHandler.cs (1)
14[ExportCSharpVisualBasicStatelessLspService(typeof(FailingMutatingRequestHandler)), PartNotDiscoverable, Shared]
Ordering\FailingRequestHandler.cs (1)
14[ExportCSharpVisualBasicStatelessLspService(typeof(FailingRequestHandler)), PartNotDiscoverable, Shared]
Ordering\LongRunningNonMutatingRequestHandler.cs (1)
15[ExportCSharpVisualBasicStatelessLspService(typeof(LongRunningNonMutatingRequestHandler)), PartNotDiscoverable, Shared]
Ordering\MutatingRequestHandler.cs (1)
14[ExportCSharpVisualBasicStatelessLspService(typeof(MutatingRequestHandler)), PartNotDiscoverable, Shared]
Ordering\NonLSPSolutionRequestHandlerProvider.cs (1)
15[ExportCSharpVisualBasicStatelessLspService(typeof(NonLSPSolutionRequestHandler)), PartNotDiscoverable, Shared]
Ordering\NonMutatingRequestHandler.cs (1)
14[ExportCSharpVisualBasicStatelessLspService(typeof(NonMutatingRequestHandler)), PartNotDiscoverable, Shared]
Symbols\WorkspaceSymbolsTests.cs (1)
259[PartNotDiscoverable, Shared]
TestConfigurableDocumentHandler.cs (1)
22[ExportCSharpVisualBasicStatelessLspService(typeof(TestConfigurableDocumentHandler)), PartNotDiscoverable, Shared]
UriTests.cs (1)
375[ExportCSharpVisualBasicStatelessLspService(typeof(CustomResolveHandler)), PartNotDiscoverable, Shared]
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (9)
Fakes\MockFallbackAnalyzerConfigOptionsProvider.cs (1)
13[ExportWorkspaceService(typeof(IFallbackAnalyzerConfigOptionsProvider), ServiceLayer.Test), Shared, PartNotDiscoverable]
Fakes\MockWorkspaceEventListenerProvider.cs (1)
15[ExportWorkspaceServiceFactory(typeof(IWorkspaceEventListenerService), ServiceLayer.Test), Shared, PartNotDiscoverable]
NoCompilationLanguageServiceFactory.cs (1)
12[ExportLanguageService(typeof(INoCompilationLanguageService), NoCompilationConstants.LanguageName, ServiceLayer.Test), Shared, PartNotDiscoverable]
Remote\InProcRemoteHostClientProvider.cs (1)
24[ExportWorkspaceServiceFactory(typeof(IRemoteHostClientProvider), ServiceLayer.Test), Shared, PartNotDiscoverable]
Remote\TestSerializerService.cs (1)
113[ExportWorkspaceServiceFactory(typeof(ISerializerService), layer: ServiceLayer.Test), Shared, PartNotDiscoverable]
TestDynamicFileInfoProviderThatProducesFiles.cs (1)
19[PartNotDiscoverable]
TestDynamicFileInfoProviderThatProducesNoFiles.cs (1)
19[PartNotDiscoverable]
Workspaces\TestDocumentTrackingService.cs (1)
12[ExportWorkspaceService(typeof(IDocumentTrackingService), ServiceLayer.Test), Shared, PartNotDiscoverable]
Workspaces\TestWorkspaceConfigurationService.cs (1)
12[Export, Shared, PartNotDiscoverable]
Microsoft.CodeAnalysis.Workspaces.UnitTests (6)
Formatter\FormatterTests.cs (1)
32[ExportLanguageService(typeof(IFormattingService), language: NoCompilationConstants.LanguageName), Shared, PartNotDiscoverable]
Host\LanguageServices\TestCSharpCompilationFactoryServiceWithIncrementalGeneratorTracking.cs (1)
17[ExportLanguageService(typeof(ICompilationFactoryService), LanguageNames.CSharp, ServiceLayer.Test), Shared, PartNotDiscoverable]
SolutionTests\SolutionTests.cs (2)
3907[ExportLanguageService(typeof(ITestLanguageService), LanguageNames.CSharp, ServiceLayer.Default), Shared, PartNotDiscoverable] 3917[ExportLanguageService(typeof(ITestLanguageService), LanguageNames.CSharp, "Quasimodo"), Shared, PartNotDiscoverable]
SolutionTests\SolutionWithSourceGeneratorTests.cs (1)
1403[PartNotDiscoverable]
SolutionTests\SourceGeneratorTelemetryCollectorWorkspaceServiceTests.cs (1)
38[PartNotDiscoverable]
Microsoft.VisualStudio.LanguageServices.Test.Utilities2 (1)
MockVisualStudioDiagnosticAnalyzerProviderFactory.vb (1)
11<PartNotDiscoverable>
Microsoft.VisualStudio.LanguageServices.UnitTests (8)
Completion\CSharpMockCompletionProvider.vb (1)
13<PartNotDiscoverable>
Completion\TestCSharpSnippetInfoService.vb (1)
16<ExportLanguageService(GetType(ISnippetInfoService), LanguageNames.CSharp, ServiceLayer.Test), [Shared], PartNotDiscoverable>
Completion\TestVisualBasicSnippetInfoService.vb (1)
16<ExportLanguageService(GetType(ISnippetInfoService), LanguageNames.VisualBasic, ServiceLayer.Test), [Shared], PartNotDiscoverable>
Completion\VisualBasicMockCompletionProvider.vb (1)
13<PartNotDiscoverable>
Snippets\SnippetCompletionProviderTests.vb (1)
124<ExportLanguageService(GetType(ISnippetInfoService), LanguageNames.VisualBasic, ServiceLayer.Test), [Shared], PartNotDiscoverable>
Snippets\SnippetTestState.vb (3)
164<PartNotDiscoverable> 215<PartNotDiscoverable> 227<PartNotDiscoverable>
Roslyn.VisualStudio.Next.UnitTests (3)
Services\ServiceHubServicesTests.cs (1)
712[PartNotDiscoverable]
Services\ServiceHubServicesTests_ExtensionMessageHandler.cs (2)
758[PartNotDiscoverable] 770[PartNotDiscoverable]
5 references to PartNotDiscoverableAttribute
Roslyn.Diagnostics.Analyzers (3)
TestExportsShouldNotBeDiscoverable.cs (2)
22/// MEF-exported types defined in test assemblies should be marked with <see cref="PartNotDiscoverableAttribute"/> 86ad.AttributeClass.Name == nameof(PartNotDiscoverableAttribute)
TestExportsShouldNotBeDiscoverableCodeFixProvider.cs (1)
88partNotDiscoverableAttributeSymbol = exportAttributeSymbol.ContainingNamespace.GetTypeMembers(nameof(PartNotDiscoverableAttribute)).FirstOrDefault();
System.Composition.AttributedModel (1)
System\Composition\PartNotDiscoverableAttribute.cs (1)
13/// Initializes a new instance of the <see cref="PartNotDiscoverableAttribute"/> class.
System.Composition.TypedParts (1)
System\Composition\TypedParts\Discovery\TypeInspector.cs (1)
31if (type.IsAbstract || !type.IsClass || _attributeContext.GetDeclaredAttribute<PartNotDiscoverableAttribute>(type.AsType(), type) != null)