188 references to ServiceLayer
AnalyzerRunner (2)
AnalyzerRunnerWorkspaceConfigurationService.cs (1)
13[ExportWorkspaceService(typeof(IWorkspaceConfigurationService), ServiceLayer.Host), Shared]
PersistentStorageConfiguration.cs (1)
15[ExportWorkspaceService(typeof(IPersistentStorageConfiguration), ServiceLayer.Host)]
Microsoft.CodeAnalysis.CodeStyle.Fixes (8)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\LanguageServiceMetadata.cs (1)
26public string Layer { get; } = (string?)data.GetValueOrDefault(nameof(ExportLanguageServiceAttribute.Layer)) ?? ServiceLayer.Default;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\LayeredServiceUtilities.cs (6)
16/// Layers in the priority order. <see cref="ServiceLayer.Host"/> services override <see cref="ServiceLayer.Editor"/> services, etc. 18private static readonly ImmutableArray<string> s_orderedProductLayers = [ServiceLayer.Host, ServiceLayer.Editor, ServiceLayer.Desktop, ServiceLayer.Default];
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\WorkspaceServices\SemanticModelReuse\SemanticModelReuseWorkspaceServiceFactory.cs (1)
13[ExportWorkspaceServiceFactory(typeof(ISemanticModelReuseWorkspaceService), ServiceLayer.Default), Shared]
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Completion\CompletionProviders\SnippetCompletionProviderTests.cs (1)
132[ExportLanguageService(typeof(ISnippetInfoService), LanguageNames.CSharp, ServiceLayer.Test), Shared, PartNotDiscoverable]
StringCopyPaste\TestStringCopyPasteService.cs (1)
16[ExportWorkspaceService(typeof(IStringCopyPasteService), ServiceLayer.Test), Shared, PartNotDiscoverable]
Microsoft.CodeAnalysis.CSharp.Features (1)
EmbeddedLanguages\CSharpEmbeddedLanguagesProvider.cs (1)
15[ExportLanguageService(typeof(IEmbeddedLanguagesProvider), LanguageNames.CSharp, ServiceLayer.Default), Shared]
Microsoft.CodeAnalysis.EditorFeatures (20)
CodeRefactorings\EditorLayerCodeActionHelpersService.cs (1)
15[ExportWorkspaceServiceFactory(typeof(ICodeRefactoringHelpersService), ServiceLayer.Editor), Shared]
EditAndContinue\ActiveStatementTrackingService.cs (2)
39[ExportWorkspaceServiceFactory(typeof(IActiveStatementTrackingService), ServiceLayer.Editor), Shared] 50[ExportWorkspaceService(typeof(IActiveStatementSpanLocator), ServiceLayer.Editor), Shared]
Editor\EditorLayerExtensionManager.cs (1)
28[ExportWorkspaceServiceFactory(typeof(IExtensionManager), ServiceLayer.Editor), Shared]
EditorConfigSettings\Aggregator\SettingsAggregatorFactory.cs (1)
14[ExportWorkspaceServiceFactory(typeof(ISettingsAggregator), ServiceLayer.Default), Shared]
ErrorReporting\EditorErrorReportingService.cs (1)
13[ExportWorkspaceService(typeof(IErrorReportingService), ServiceLayer.Editor), Shared]
ExportContentTypeLanguageServiceAttribute.cs (1)
16internal class ExportContentTypeLanguageServiceAttribute(string defaultContentType, string language, string layer = ServiceLayer.Default)
InlineRename\UndoManagerServiceFactory.cs (1)
21[ExportWorkspaceServiceFactory(typeof(IInlineRenameUndoManager), ServiceLayer.Default), Shared]
IntelliSense\ImportCompletionCacheService\EditorExtensionMethodImportCompletionCacheServiceFactory.cs (1)
16[ExportWorkspaceServiceFactory(typeof(IImportCompletionCacheService<ExtensionMethodImportCompletionCacheEntry, object>), ServiceLayer.Editor), Shared]
IntelliSense\ImportCompletionCacheService\EditorTypeImportCompletionCacheServiceFactory.cs (1)
16[ExportWorkspaceServiceFactory(typeof(IImportCompletionCacheService<TypeImportCompletionCacheEntry, TypeImportCompletionCacheEntry>), ServiceLayer.Editor), Shared]
NavigateTo\DefaultNavigateToLinkService.cs (1)
16[ExportWorkspaceService(typeof(INavigateToLinkService), layer: ServiceLayer.Default)]
Shared\DefaultTextBufferSupportsFeatureService.cs (1)
12[ExportWorkspaceService(typeof(ITextBufferSupportsFeatureService), ServiceLayer.Editor), Shared]
Shared\Utilities\IWorkspaceContextService.cs (1)
28[ExportWorkspaceService(typeof(IWorkspaceContextService), ServiceLayer.Default), Shared]
Shared\Utilities\ThreadingContextTaskSchedulerProvider.cs (1)
15[ExportWorkspaceService(typeof(ITaskSchedulerProvider), ServiceLayer.Editor), Shared]
TextDiffing\EditorTextDifferencingService.cs (1)
20[ExportWorkspaceService(typeof(IDocumentTextDifferencingService), ServiceLayer.Host), Shared]
Undo\DefaultSourceTextUndoService.cs (1)
15[ExportWorkspaceService(typeof(ISourceTextUndoService), ServiceLayer.Default), Shared]
Undo\EditorSourceTextUndoService.cs (1)
18[ExportWorkspaceService(typeof(ISourceTextUndoService), ServiceLayer.Editor), Shared]
Undo\NoOpGlobalUndoServiceFactory.cs (1)
17[ExportWorkspaceServiceFactory(typeof(IGlobalUndoService), ServiceLayer.Default), Shared]
Workspaces\EditorTextFactoryService.cs (1)
19[ExportWorkspaceService(typeof(ITextFactoryService), ServiceLayer.Editor), Shared]
Workspaces\TextUndoHistoryWorkspaceServiceFactoryService.cs (1)
16[ExportWorkspaceServiceFactory(typeof(ITextUndoHistoryWorkspaceService), ServiceLayer.Default), Shared]
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (13)
ChangeSignature\TestChangeSignatureOptionsService.cs (1)
16[ExportWorkspaceService(typeof(IChangeSignatureOptionsService), ServiceLayer.Test), Shared, PartNotDiscoverable]
Diagnostics\GenerateType\TestGenerateTypeOptionsService.cs (1)
18[ExportWorkspaceService(typeof(IGenerateTypeOptionsService), ServiceLayer.Test), Shared, PartNotDiscoverable]
Diagnostics\GenerateType\TestProjectManagementService.cs (1)
15[ExportWorkspaceService(typeof(IProjectManagementService), ServiceLayer.Default), Shared]
DocumentTracking\FirstDocumentIsActiveAndVisibleDocumentTrackingService.cs (1)
31[ExportWorkspaceServiceFactory(typeof(IDocumentTrackingService), ServiceLayer.Test), Shared, PartNotDiscoverable]
DocumentTracking\TestDocumentTrackingService.cs (1)
12[ExportWorkspaceService(typeof(IDocumentTrackingService), ServiceLayer.Test), Shared, PartNotDiscoverable]
ExtractInterface\TestExtractInterfaceOptions.cs (1)
18[ExportWorkspaceService(typeof(IExtractInterfaceOptionsService), ServiceLayer.Test), Shared, PartNotDiscoverable]
NavigateTo\AbstractNavigateToTests.cs (1)
249[ExportWorkspaceServiceFactory(typeof(IDocumentTrackingService), ServiceLayer.Test), Shared, PartNotDiscoverable]
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 (4)
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\MockDocumentNavigationServiceProvider.vb (1)
16<ExportWorkspaceServiceFactory(GetType(IDocumentNavigationService), ServiceLayer.Host), [Shared]>
Utilities\MockSymbolNavigationServiceProvider.vb (1)
18<ExportWorkspaceServiceFactory(GetType(ISymbolNavigationService), ServiceLayer.Test), [Shared], PartNotDiscoverable>
Microsoft.CodeAnalysis.EditorFeatures.Wpf (7)
BackgroundWorkIndicator\WpfBackgroundWorkIndicatorFactory.cs (1)
18[ExportWorkspaceService(typeof(IBackgroundWorkIndicatorFactory), ServiceLayer.Editor), Shared]
NavigateTo\DefaultNavigateToPreviewServiceFactory.cs (1)
14[ExportWorkspaceServiceFactory(typeof(INavigateToPreviewService), ServiceLayer.Editor), Shared]
Notification\EditorNotificationServiceFactory.cs (1)
16[ExportWorkspaceServiceFactory(typeof(INotificationService), ServiceLayer.Editor)]
QuickInfo\ContentControlService.cs (1)
25[ExportWorkspaceService(typeof(IContentControlService), layer: ServiceLayer.Editor), Shared]
StringCopyPaste\WpfStringCopyPasteService.cs (1)
16[ExportWorkspaceService(typeof(IStringCopyPasteService), ServiceLayer.Host), Shared]
Suggestions\FixAll\FixAllGetFixesService.cs (1)
13[ExportWorkspaceService(typeof(IFixAllGetFixesService), ServiceLayer.Editor), Shared]
Suggestions\FixAll\FixMultipleOccurrencesService.cs (1)
21[ExportWorkspaceService(typeof(IFixMultipleOccurrencesService), ServiceLayer.Host), Shared]
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (4)
Classification\ClassificationTests.vb (1)
333<ExportLanguageService(GetType(IClassificationService), NoCompilationConstants.LanguageName, ServiceLayer.Test), [Shared], PartNotDiscoverable>
CodeFixes\CodeFixServiceTests.vb (2)
301<ExportLanguageService(GetType(ICopilotOptionsService), NoCompilationConstants.LanguageName, ServiceLayer.Test), [Shared], PartNotDiscoverable> 323<ExportLanguageService(GetType(ICopilotCodeAnalysisService), NoCompilationConstants.LanguageName, ServiceLayer.Test), [Shared], PartNotDiscoverable>
IntelliSense\VisualBasicCompletionCommandHandlerTests.vb (1)
3413<ExportLanguageService(GetType(ISnippetInfoService), LanguageNames.VisualBasic, ServiceLayer.Test), [Shared], PartNotDiscoverable>
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp (1)
Internal\PickMembers\OmniSharpPickMembersService.cs (1)
15[ExportWorkspaceService(typeof(IPickMembersService), ServiceLayer.Host)]
Microsoft.CodeAnalysis.Features (10)
CodeFixesAndRefactorings\FeaturesFixAllGetFixesService.cs (1)
12[ExportWorkspaceService(typeof(IFixAllGetFixesService), ServiceLayer.Default), Shared]
CodeRefactorings\ServicesLayerCodeActionHelpersService.cs (1)
14[ExportWorkspaceServiceFactory(typeof(ICodeRefactoringHelpersService), ServiceLayer.Default), Shared]
Completion\Providers\ImportCompletionProvider\DefaultExtensionMethodImportCompletionCacheServiceFactory.cs (1)
16[ExportWorkspaceServiceFactory(typeof(IImportCompletionCacheService<ExtensionMethodImportCompletionCacheEntry, object>), ServiceLayer.Default), Shared]
Completion\Providers\ImportCompletionProvider\DefaultTypeImportCompletionCacheServiceFactory.cs (1)
13[ExportWorkspaceServiceFactory(typeof(IImportCompletionCacheService<TypeImportCompletionCacheEntry, TypeImportCompletionCacheEntry>), ServiceLayer.Default), Shared]
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingSolutionCrawlerRegistrationService.cs (1)
21[ExportWorkspaceService(typeof(IUnitTestingSolutionCrawlerRegistrationService), ServiceLayer.Host), Shared]
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingSolutionCrawlerService.cs (1)
21[ExportWorkspaceService(typeof(IUnitTestingSolutionCrawlerService), ServiceLayer.Default), Shared]
Navigation\DefaultDocumentNavigationService.cs (1)
11[ExportWorkspaceService(typeof(IDocumentNavigationService), ServiceLayer.Default), Shared]
Navigation\DefaultSymbolNavigationServiceFactory.cs (1)
14[ExportWorkspaceServiceFactory(typeof(ISymbolNavigationService), ServiceLayer.Default), Shared]
Shared\IDocumentSupportsFeatureService.cs (1)
23[ExportWorkspaceService(typeof(IDocumentSupportsFeatureService), ServiceLayer.Default), Shared]
SymbolMapping\SymbolMappingServiceFactory.cs (1)
15[ExportWorkspaceService(typeof(ISymbolMappingService), ServiceLayer.Default), Shared]
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
Workspaces\TestSymbolRenamedCodeActionOperationFactoryWorkspaceService.cs (1)
15[ExportWorkspaceService(typeof(ISymbolRenamedCodeActionOperationFactoryWorkspaceService), ServiceLayer.Test), Shared, PartNotDiscoverable]
Microsoft.CodeAnalysis.LanguageServer (2)
HostWorkspace\ExtensionManager.cs (1)
12[ExportWorkspaceService(typeof(IExtensionManager), ServiceLayer.Host), Shared]
HostWorkspace\MetadataService.cs (1)
11[ExportWorkspaceServiceFactory(typeof(IMetadataService), ServiceLayer.Host), Shared]
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Features\Options\WorkspaceConfigurationService.cs (1)
12[ExportWorkspaceService(typeof(IWorkspaceConfigurationService), ServiceLayer.Host), Shared]
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (3)
Completion\CompletionFeaturesTests.cs (2)
611[ExportLanguageServiceFactory(typeof(CompletionService), LanguageNames.CSharp, ServiceLayer.Test), Shared] 902[ExportLanguageServiceFactory(typeof(CompletionService), LanguageNames.CSharp, ServiceLayer.Test), Shared]
MapCode\MapCodeTests.cs (1)
25[ExportLanguageService(typeof(IMapCodeService), language: LanguageNames.CSharp, layer: ServiceLayer.Test), Shared, PartNotDiscoverable]
Microsoft.CodeAnalysis.Remote.ServiceHub (4)
Host\RemoteDocumentDifferenceService.cs (2)
26[ExportLanguageService(typeof(IDocumentDifferenceService), LanguageNames.CSharp, layer: ServiceLayer.Host), Shared] 36[ExportLanguageService(typeof(IDocumentDifferenceService), LanguageNames.VisualBasic, layer: ServiceLayer.Host), Shared]
Services\ProcessTelemetry\RemoteWorkspaceConfigurationService.cs (1)
14[ExportWorkspaceService(typeof(IWorkspaceConfigurationService), ServiceLayer.Host), Shared]
Services\RemoteDocumentTrackingService.cs (1)
12[ExportWorkspaceService(typeof(IDocumentTrackingService), ServiceLayer.Host), Shared]
Microsoft.CodeAnalysis.VisualBasic.Features (1)
EmbeddedLanguages\VisualBasicEmbeddedLanguagesProvider.vb (1)
13<ExportLanguageService(GetType(IEmbeddedLanguagesProvider), LanguageNames.VisualBasic, ServiceLayer.Default), [Shared]>
Microsoft.CodeAnalysis.Workspaces (42)
ExtensionManager\ServicesLayerExtensionManager.cs (1)
12[ExportWorkspaceService(typeof(IExtensionManager), ServiceLayer.Default), Shared]
Formatting\Rules\DefaultFormattingRuleFactoryServiceFactory.cs (1)
13[ExportWorkspaceService(typeof(IHostDependentFormattingRuleFactoryService), ServiceLayer.Default), Shared]
LinkedFileDiffMerging\DefaultDocumentTextDifferencingService.cs (1)
15[ExportWorkspaceService(typeof(IDocumentTextDifferencingService), ServiceLayer.Default), Shared]
Serialization\SerializerService.cs (1)
26[ExportWorkspaceServiceFactory(typeof(ISerializerService), layer: ServiceLayer.Default), Shared]
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\LanguageServiceMetadata.cs (1)
26public string Layer { get; } = (string?)data.GetValueOrDefault(nameof(ExportLanguageServiceAttribute.Layer)) ?? ServiceLayer.Default;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\LayeredServiceUtilities.cs (7)
16/// Layers in the priority order. <see cref="ServiceLayer.Host"/> services override <see cref="ServiceLayer.Editor"/> services, etc. 18private static readonly ImmutableArray<string> s_orderedProductLayers = [ServiceLayer.Host, ServiceLayer.Editor, ServiceLayer.Desktop, ServiceLayer.Default]; 45service = servicesOfMatchingType.SingleOrDefault(static lz => lz.lazyService?.Metadata.Layer == ServiceLayer.Test);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\WorkspaceServices\SemanticModelReuse\SemanticModelReuseWorkspaceServiceFactory.cs (1)
13[ExportWorkspaceServiceFactory(typeof(ISemanticModelReuseWorkspaceService), ServiceLayer.Default), Shared]
TemporaryStorage\TemporaryStorageService.Factory.cs (1)
15[ExportWorkspaceServiceFactory(typeof(ITemporaryStorageServiceInternal), ServiceLayer.Default), Shared]
Workspace\DocumentTracking\DefaultDocumentTrackingService.cs (1)
12[ExportWorkspaceService(typeof(IDocumentTrackingService), ServiceLayer.Default), Shared]
Workspace\Host\Documentation\DocumentationProviderServiceFactory.cs (1)
13[ExportWorkspaceServiceFactory(typeof(IDocumentationProviderService), ServiceLayer.Default), Shared]
Workspace\Host\EventListener\IWorkspaceEventListenerProvider.cs (1)
24[ExportWorkspaceServiceFactory(typeof(IWorkspaceEventListenerService), layer: ServiceLayer.Default), Shared]
Workspace\Host\Mef\ExportLanguageServiceAttribute.cs (4)
19/// <param name="layer">The layer that the service is specified for; <see cref="ServiceLayer.Default"/>, etc.</param> 22public class ExportLanguageServiceAttribute(Type type, string language, string layer = ServiceLayer.Default) : ExportAttribute(typeof(ILanguageService)) 35/// The layer that the service is specified for. Specify a value from <see cref="ServiceLayer"/>. 42/// unless <see cref="Layer"/> is <see cref="ServiceLayer.Test"/> in which case the export overrides all other exports.
Workspace\Host\Mef\ExportLanguageServiceFactoryAttribute.cs (4)
19/// <param name="layer">The layer that the service is specified for; <see cref="ServiceLayer.Default"/>, etc.</param> 22public class ExportLanguageServiceFactoryAttribute(Type type, string language, string layer = ServiceLayer.Default) : ExportAttribute(typeof(ILanguageServiceFactory)) 35/// The layer that the service is specified for. Specify a value from <see cref="ServiceLayer"/>. 42/// unless <see cref="Layer"/> is <see cref="ServiceLayer.Test"/> in which case the export overrides all other exports.
Workspace\Host\Mef\ExportWorkspaceServiceAttribute.cs (4)
18/// <param name="layer">The layer that the service is specified for; <see cref="ServiceLayer.Default" />, etc.</param> 21public class ExportWorkspaceServiceAttribute(Type serviceType, string layer = ServiceLayer.Default) : ExportAttribute(typeof(IWorkspaceService)) 29/// The layer that the service is specified for. Specify a value from <see cref="ServiceLayer"/>. 36/// unless <see cref="Layer"/> is <see cref="ServiceLayer.Test"/> in which case the export overrides all other exports.
Workspace\Host\Mef\ExportWorkspaceServiceFactoryAttribute.cs (4)
18/// <param name="layer">The layer or workspace kind that the service is specified for; <see cref="ServiceLayer.Default" />, <see cref="WorkspaceKind.MiscellaneousFiles" />etc.</param> 21public class ExportWorkspaceServiceFactoryAttribute(Type serviceType, string layer = ServiceLayer.Default) : ExportAttribute(typeof(IWorkspaceServiceFactory)) 29/// The layer that the service is specified for. Specify a value from <see cref="ServiceLayer"/>. 36/// unless <see cref="Layer"/> is <see cref="ServiceLayer.Test"/> in which case the export overrides all other exports.
Workspace\Host\Mef\ServiceLayer.cs (1)
10/// If there are multiple definitions of a service, the <see cref="ServiceLayer"/> is used to determine which is used.
Workspace\Host\Metadata\FrameworkAssemblyPathResolverFactory.cs (1)
11[ExportWorkspaceServiceFactory(typeof(IFrameworkAssemblyPathResolver), ServiceLayer.Default), Shared]
Workspace\Host\Metadata\MetadataServiceFactory.cs (1)
13[ExportWorkspaceServiceFactory(typeof(IMetadataService), ServiceLayer.Default), Shared]
Workspace\Host\Status\DefaultWorkspaceStatusService.cs (1)
14[ExportWorkspaceService(typeof(IWorkspaceStatusService), ServiceLayer.Default), Shared]
Workspace\Host\TaskScheduler\TaskSchedulerProvider.cs (1)
13[ExportWorkspaceService(typeof(ITaskSchedulerProvider), ServiceLayer.Default)]
Workspace\Host\TaskScheduler\WorkspaceAsynchronousOperationListenerProvider.cs (1)
12[ExportWorkspaceService(typeof(IWorkspaceAsynchronousOperationListenerProvider), ServiceLayer.Default)]
Workspace\Host\TextFactory\TextFactoryService.cs (1)
16[ExportWorkspaceService(typeof(ITextFactoryService), ServiceLayer.Default), Shared]
Workspace\Host\WorkpacePartialSolutionsTestHook.cs (1)
12[ExportWorkspaceService(typeof(IWorkspacePartialSolutionsTestHook), ServiceLayer.Host), Shared]
Workspace\ISolutionAnalyzerSetterWorkspaceService.cs (1)
23[ExportWorkspaceServiceFactory(typeof(ISolutionAnalyzerSetterWorkspaceService), ServiceLayer.Default), Shared]
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (7)
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)
114[ExportWorkspaceServiceFactory(typeof(ISerializerService), layer: ServiceLayer.Test), Shared, PartNotDiscoverable]
TestErrorReportingService.cs (1)
14[ExportWorkspaceService(typeof(IErrorReportingService), ServiceLayer.Test), Shared]
Workspaces\TestWorkspaceConfigurationService.cs (1)
13[ExportWorkspaceService(typeof(IWorkspaceConfigurationService), ServiceLayer.Test)]
Microsoft.CodeAnalysis.Workspaces.UnitTests (4)
Host\LanguageServices\TestCSharpCompilationFactoryServiceWithIncrementalGeneratorTracking.cs (1)
17[ExportLanguageService(typeof(ICompilationFactoryService), LanguageNames.CSharp, ServiceLayer.Test), Shared, PartNotDiscoverable]
SolutionTests\SolutionTests.cs (2)
3841var ws = new AdhocWorkspace(hostServices, ServiceLayer.Host); 3881[ExportLanguageService(typeof(ITestLanguageService), LanguageNames.CSharp, ServiceLayer.Default), Shared, PartNotDiscoverable]
SolutionTests\SolutionWithSourceGeneratorTests.cs (1)
994[ExportWorkspaceService(typeof(IWorkspaceConfigurationService), ServiceLayer.Test), System.Composition.Shared]
Microsoft.VisualStudio.IntegrationTest.Setup (3)
TestExtensionManager.cs (3)
15/// This class is exported as a workspace service with layer: <see cref="ServiceLayer.Host"/>. This ensures that TestExtensionManager 16/// is preferred over EditorLayerExtensionManager (which has layer: <see cref="ServiceLayer.Editor"/>) when running VS integration tests. 18[Shared, ExportWorkspaceService(typeof(IExtensionManager), ServiceLayer.Host)]
Microsoft.VisualStudio.LanguageServices (41)
ChangeSignature\VisualStudioChangeSignatureOptionsService.cs (1)
16[ExportWorkspaceService(typeof(IChangeSignatureOptionsService), ServiceLayer.Host), Shared]
CodeLens\RemoteCodeLensReferencesService.cs (1)
24[ExportWorkspaceService(typeof(ICodeLensReferencesService), layer: ServiceLayer.Host), Shared]
Diagnostics\VisualStudioVenusSpanMappingService.cs (1)
19[ExportWorkspaceService(typeof(IWorkspaceVenusSpanMappingService), ServiceLayer.Default), Shared]
ErrorReporting\VisualStudioErrorReportingService.cs (1)
19[ExportWorkspaceService(typeof(IErrorReportingService), ServiceLayer.Host), Shared]
ExtractClass\VisualStudioExtractClassOptionsService.cs (1)
29[ExportWorkspaceService(typeof(IExtractClassOptionsService), ServiceLayer.Host), Shared]
ExtractInterface\VisualStudioExtractInterfaceOptionsService.cs (1)
29[ExportWorkspaceService(typeof(IExtractInterfaceOptionsService), ServiceLayer.Host), Shared]
FindReferences\VisualStudioDefinitionsAndReferencesFactory.cs (1)
24[ExportWorkspaceService(typeof(IExternalDefinitionItemProvider), ServiceLayer.Desktop), Shared]
GenerateType\VisualStudioGenerateTypeOptionsServiceFactory.cs (1)
19[ExportWorkspaceServiceFactory(typeof(IGenerateTypeOptionsService), ServiceLayer.Host), Shared]
Implementation\HierarchyItemToProjectIdMap.cs (1)
16[ExportWorkspaceService(typeof(IHierarchyItemToProjectIdMap), ServiceLayer.Host), Shared]
Implementation\VisualStudioSupportsFeatureService.cs (2)
26[ExportWorkspaceService(typeof(ITextBufferSupportsFeatureService), ServiceLayer.Host), Shared] 81[ExportWorkspaceService(typeof(IDocumentSupportsFeatureService), ServiceLayer.Host), Shared]
Implementation\VisualStudioWorkspaceContextService.cs (1)
15[ExportWorkspaceService(typeof(IWorkspaceContextService), ServiceLayer.Host), Shared]
Implementation\WorkspaceCacheService.cs (1)
14[ExportWorkspaceService(typeof(IWorkspaceCacheService), ServiceLayer.Host), Shared]
InlineRename\InlineRenameUndoManager.cs (1)
30[ExportWorkspaceServiceFactory(typeof(IInlineRenameUndoManager), ServiceLayer.Host), Shared]
LanguageServer\Handler\Diagnostics\VisualStudioDiagnosticProjectInformationService.cs (1)
14[ExportWorkspaceService(typeof(IDiagnosticProjectInformationService), ServiceLayer.Host), Shared]
Log\VisualStudioErrorLogger.cs (1)
17[ExportWorkspaceService(typeof(IErrorLoggerService), ServiceLayer.Host), Export(typeof(IErrorLoggerService)), Shared]
MoveStaticMembers\VisualStudioMoveStaticMembersOptionsService.cs (1)
27[ExportWorkspaceService(typeof(IMoveStaticMembersOptionsService), ServiceLayer.Host), Shared]
NavigateTo\VisualStudioNavigateToPreviewServiceFactory.cs (1)
15[ExportWorkspaceServiceFactory(typeof(INavigateToPreviewService), ServiceLayer.Host), Shared]
Notification\VSNotificationServiceFactory.cs (1)
17[ExportWorkspaceServiceFactory(typeof(INotificationService), ServiceLayer.Host), Shared]
PickMembers\VisualStudioPickMembersService.cs (1)
16[ExportWorkspaceService(typeof(IPickMembersService), ServiceLayer.Host), Shared]
Preview\PreviewService.cs (1)
19[ExportWorkspaceServiceFactory(typeof(IPreviewDialogService), ServiceLayer.Host), Shared]
PreviewPane\PreviewPaneService.cs (1)
26[ExportWorkspaceServiceFactory(typeof(IPreviewPaneService), ServiceLayer.Host), Shared]
ProjectSystem\MetadataReferences\VisualStudioFrameworkAssemblyPathResolverFactory.cs (1)
21[ExportWorkspaceServiceFactory(typeof(IFrameworkAssemblyPathResolver), ServiceLayer.Host), Shared]
ProjectSystem\MetadataReferences\VisualStudioMetadataReferenceManagerFactory.cs (1)
16[ExportWorkspaceServiceFactory(typeof(VisualStudioMetadataReferenceManager), ServiceLayer.Host), Shared]
ProjectSystem\MetadataReferences\VisualStudioMetadataReferenceProviderServiceFactory.cs (1)
13[ExportWorkspaceServiceFactory(typeof(IMetadataService), ServiceLayer.Host), Shared]
ProjectSystem\RuleSets\VisualStudioRuleSetManagerFactory.cs (1)
15[ExportWorkspaceServiceFactory(typeof(IRuleSetManager), ServiceLayer.Host), Shared]
ProjectSystem\VisualStudioProjectManagementService.cs (1)
24[ExportWorkspaceService(typeof(IProjectManagementService), ServiceLayer.Host), Shared]
PullMemberUp\VisualStudioPullMemberUpService.cs (1)
26[ExportWorkspaceService(typeof(IPullMemberUpOptionsService), ServiceLayer.Host), Shared]
SymbolSearch\VisualStudioSymbolSearchService.cs (1)
38[ExportWorkspaceService(typeof(ISymbolSearchService), ServiceLayer.Host), Shared]
UnusedReferences\VisualStudioReferenceCleanupService.cs (1)
20[ExportWorkspaceService(typeof(IReferenceCleanupService), ServiceLayer.Host), Shared]
Utilities\VisualStudioNavigateToLinkService.cs (1)
18[ExportWorkspaceService(typeof(INavigateToLinkService), layer: ServiceLayer.Host)]
Workspace\GlobalUndoServiceFactory.cs (1)
24[ExportWorkspaceServiceFactory(typeof(IGlobalUndoService), ServiceLayer.Host), Shared]
Workspace\VisualStudioAddMetadataReferenceCodeActionOperationFactoryWorkspaceService.cs (1)
20[ExportWorkspaceService(typeof(IAddMetadataReferenceCodeActionOperationFactoryWorkspaceService), ServiceLayer.Host), Shared]
Workspace\VisualStudioDocumentNavigationService.cs (1)
34[ExportWorkspaceService(typeof(IDocumentNavigationService), ServiceLayer.Host), Shared]
Workspace\VisualStudioDocumentTrackingServiceFactory.cs (1)
14[ExportWorkspaceServiceFactory(typeof(IDocumentTrackingService), ServiceLayer.Host), Shared]
Workspace\VisualStudioFormattingRuleFactoryServiceFactory.cs (1)
21[ExportWorkspaceService(typeof(IHostDependentFormattingRuleFactoryService), ServiceLayer.Host), Shared]
Workspace\VisualStudioRemoteHostClientShutdownCancellationService.cs (1)
14[ExportWorkspaceService(typeof(IRemoteHostClientShutdownCancellationService), ServiceLayer.Host), Shared]
Workspace\VisualStudioSymbolNavigationService.cs (1)
32[ExportWorkspaceService(typeof(ISymbolNavigationService), ServiceLayer.Host), Shared]
Workspace\VisualStudioSymbolRenamedCodeActionOperationFactoryWorkspaceService.cs (1)
22[ExportWorkspaceService(typeof(ISymbolRenamedCodeActionOperationFactoryWorkspaceService), ServiceLayer.Host), Shared]
Workspace\VisualStudioTextUndoHistoryWorkspaceServiceFactory.cs (1)
22[ExportWorkspaceServiceFactory(typeof(ITextUndoHistoryWorkspaceService), ServiceLayer.Host), Shared]
Workspace\VisualStudioWorkspaceStatusServiceFactory.cs (1)
24[ExportWorkspaceServiceFactory(typeof(IWorkspaceStatusService), ServiceLayer.Host), Shared]
Microsoft.VisualStudio.LanguageServices.UnitTests (6)
Completion\TestCSharpSnippetInfoService.vb (1)
15<ExportLanguageService(GetType(ISnippetInfoService), LanguageNames.CSharp, ServiceLayer.Test), [Shared], PartNotDiscoverable>
Completion\TestVisualBasicSnippetInfoService.vb (1)
15<ExportLanguageService(GetType(ISnippetInfoService), LanguageNames.VisualBasic, ServiceLayer.Test), [Shared], PartNotDiscoverable>
Snippets\SnippetCompletionProviderTests.vb (1)
124<ExportLanguageService(GetType(ISnippetInfoService), LanguageNames.VisualBasic, ServiceLayer.Test), [Shared], PartNotDiscoverable>
Snippets\SnippetTestState.vb (3)
162<ExportWorkspaceService(GetType(ISnippetExpansionClientFactory), ServiceLayer.Test), [Shared]> 213<ExportLanguageService(GetType(ISnippetExpansionLanguageHelper), LanguageNames.CSharp, ServiceLayer.Test), [Shared]> 225<ExportLanguageService(GetType(ISnippetExpansionLanguageHelper), LanguageNames.VisualBasic, ServiceLayer.Test), [Shared]>
Roslyn.VisualStudio.Next.UnitTests (1)
Services\ServiceHubServicesTests.cs (1)
696[ExportWorkspaceService(typeof(IWorkspaceConfigurationService), ServiceLayer.Test), System.Composition.Shared]