2 types derived from HostServices
Microsoft.CodeAnalysis.Remote.Workspaces (1)
VisualStudioMefHostServices.cs (1)
17internal sealed class VisualStudioMefHostServices : HostServices, IMefHostExportProvider
Microsoft.CodeAnalysis.Workspaces.Desktop (1)
Workspace\Host\Mef\MefV1HostServices.cs (1)
21public class MefV1HostServices : HostServices, IMefHostExportProvider
53 references to HostServices
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefWorkspaceServices.cs (2)
53public override HostServices HostServices 55get { return (HostServices)HostExportProvider; }
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
CodeActions\MoveStaticMembers\CSharpMoveStaticMembersTests.cs (1)
3467var hostServices = s_testServices.GetHostServices();
Formatting\RazorLineFormattingOptionsTests.cs (1)
39var hostServices = s_composition.GetHostServices();
Microsoft.CodeAnalysis.EditorFeatures (4)
Interactive\InteractiveWorkspace.cs (1)
17internal InteractiveWorkspace(HostServices hostServices)
LanguageServer\AbstractInProcLanguageClient.cs (1)
243HostServices hostServices,
SemanticSearch\SemanticSearchEditorWorkspace.cs (1)
18HostServices services,
Shared\Preview\PreviewWorkspace.cs (1)
21public PreviewWorkspace(HostServices hostServices)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
Preview\PreviewWorkspaceTests.cs (1)
37var hostServices = FeaturesTestCompositions.Features.GetHostServices();
TextEditor\OpenDocumentTests.cs (1)
29var hostServices = EditorTestCompositions.EditorFeatures.GetHostServices();
Microsoft.CodeAnalysis.EditorFeatures.Wpf (2)
Interactive\InteractiveEvaluator.cs (1)
67HostServices hostServices,
Interactive\InteractiveWindowWorkspace.cs (1)
14public InteractiveWindowWorkspace(HostServices hostServices)
Microsoft.CodeAnalysis.ExternalAccess.Razor (4)
Testing\AbstractRazorLanguageServerFactoryWrapper.cs (1)
18internal abstract IRazorLanguageServerTarget CreateLanguageServer(JsonRpc jsonRpc, JsonSerializerOptions options, IRazorTestCapabilitiesProvider capabilitiesProvider, HostServices hostServices);
Testing\RazorTestLanguageServerFactory.cs (3)
27internal override IRazorLanguageServerTarget CreateLanguageServer(JsonRpc jsonRpc, JsonSerializerOptions options, IRazorTestCapabilitiesProvider razorCapabilitiesProvider, HostServices hostServices) 32internal IRazorLanguageServerTarget CreateAlwaysActiveVSLanguageServer(JsonRpc jsonRpc, JsonSerializerOptions options, IRazorTestCapabilitiesProvider razorCapabilitiesProvider, HostServices hostServices) 37private IRazorLanguageServerTarget CreateLanguageServerCore(JsonRpc jsonRpc, JsonSerializerOptions options, IRazorTestCapabilitiesProvider razorCapabilitiesProvider, HostServices hostServices, WellKnownLspServerKinds serverKind)
Microsoft.CodeAnalysis.Features (2)
MetadataAsSource\MetadataAsSourceWorkspace.cs (1)
9internal sealed class MetadataAsSourceWorkspace(MetadataAsSourceFileService fileService, HostServices hostServices) : Workspace(hostServices, WorkspaceKind.MetadataAsSource)
SemanticSearch\SemanticSearchWorkspace.cs (1)
13internal abstract class SemanticSearchWorkspace(HostServices services, SemanticSearchProjectConfiguration config)
Microsoft.CodeAnalysis.LanguageServer (4)
HostServicesProvider.cs (2)
13/// A simple type to provide a single copy of <see cref="Microsoft.CodeAnalysis.Host.HostServices"/> for the MEF composition. 18public HostServices HostServices { get; }
HostWorkspace\LanguageServerWorkspace.cs (1)
47public LanguageServerWorkspace(HostServices host)
LanguageServer\LanguageServerHost.cs (1)
48var hostServices = exportProvider.GetExportedValue<HostServicesProvider>().HostServices;
Microsoft.CodeAnalysis.LanguageServer.Protocol (7)
CSharpVisualBasicLanguageServerFactory.cs (1)
35HostServices hostServices,
ILanguageServerFactory.cs (1)
21HostServices hostServices,
RoslynLanguageServer.cs (2)
35HostServices hostServices, 73HostServices hostServices,
Workspaces\LspMiscellaneousFilesWorkspace.cs (1)
28internal sealed class LspMiscellaneousFilesWorkspace(ILspServices lspServices, IMetadataAsSourceFileService metadataAsSourceFileService, HostServices hostServices)
Workspaces\LspMiscellaneousFilesWorkspaceProvider.cs (2)
18/// special base language server dependencies such as the <see cref="HostServices"/> 25public LspMiscellaneousFilesWorkspace CreateLspMiscellaneousFilesWorkspace(ILspServices lspServices, HostServices hostServices)
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Host\RemoteWorkspace.cs (1)
31internal RemoteWorkspace(HostServices hostServices)
Microsoft.CodeAnalysis.Workspaces (7)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefWorkspaceServices.cs (2)
53public override HostServices HostServices 55get { return (HostServices)HostExportProvider; }
Workspace\AdhocWorkspace.cs (1)
19public sealed class AdhocWorkspace(HostServices host, string workspaceKind = WorkspaceKind.Custom) : Workspace(host, workspaceKind)
Workspace\Host\HostWorkspaceServices.cs (1)
51public abstract HostServices HostServices { get; }
Workspace\Host\Mef\MefHostServices.cs (1)
18public class MefHostServices(CompositionContext compositionContext) : HostServices, IMefHostExportProvider
Workspace\Workspace.cs (2)
69/// <param name="host">The <see cref="HostServices"/> this workspace uses</param> 71protected Workspace(HostServices host, string? workspaceKind)
Microsoft.CodeAnalysis.Workspaces.MSBuild (5)
MSBuild\MSBuildWorkspace.cs (5)
38HostServices hostServices, 69/// <param name="hostServices">The <see cref="HostServices"/> used to configure this workspace.</param> 70public static MSBuildWorkspace Create(HostServices hostServices) 80/// <param name="hostServices">The <see cref="HostServices"/> used to configure this workspace.</param> 81public static MSBuildWorkspace Create(IDictionary<string, string> properties, HostServices hostServices)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
MSBuildWorkspaceTestBase.cs (1)
165protected static MSBuildWorkspace CreateMSBuildWorkspace(HostServices hostServices, params (string key, string value)[] additionalProperties)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (7)
MEF\TestComposition.cs (2)
87/// Returns a new instance of <see cref="HostServices"/> for the composition. This will either be a MEF composition or VS MEF composition host, 90public HostServices GetHostServices()
MEF\UseExportProviderAttribute.cs (2)
33/// <item>Ensures <see cref="HostServices"/> implementations all use the same <see cref="ExportProvider"/>, which is 35/// <item>Clears static cached values in production code holding instances of <see cref="HostServices"/>, or any
Remote\InProcRemoteHostClientProvider.cs (1)
55var hostServices = FeaturesTestCompositions.RemoteHost.AddParts(additionalRemoteParts).AddExcludedPartTypes(excludedRemoteParts).GetHostServices();
Workspaces\TestWorkspace`1.cs (1)
165private static HostServices GetHostServices([NotNull] ref TestComposition? composition, bool hasWorkspaceConfigurationOptions)
WorkspaceTestUtilities.cs (1)
19public WorkspaceWithPartialSemantics(HostServices hostServices) : base(hostServices, workspaceKind: nameof(WorkspaceWithPartialSemantics))
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
Remote\ServiceDescriptorTests.cs (1)
364var hostServices = FeaturesTestCompositions.Features.WithTestHostParts(Testing.TestHost.OutOfProcess).GetHostServices();
WorkspaceTests\WorkspaceTests.cs (1)
114public NoChangesAllowedWorkspace(HostServices services, string workspaceKind = "Custom")
Microsoft.VisualStudio.LanguageServices (1)
ProjectSystem\VisualStudioWorkspace.cs (1)
29internal VisualStudioWorkspace(HostServices hostServices)