36 references to Host
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
EditorConfigSettings\Updater\SettingsUpdaterTests.cs (1)
37var workspace = new AdhocWorkspace(EditorTestCompositions.EditorFeatures.GetHostServices(), WorkspaceKind.Host);
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
ExtractClass\ExtractClassTests.cs (1)
37public string WorkspaceKind { get; set; } = CodeAnalysis.WorkspaceKind.Host;
Microsoft.CodeAnalysis.EditorFeatures (3)
EditAndContinue\PdbMatchingSourceTextProvider.cs (1)
22[ExportEventListener(WellKnownEventListeners.Workspace, WorkspaceKind.Host), Shared]
LanguageServer\AlwaysActiveLanguageClientEventListener.cs (1)
23[ExportEventListener(WellKnownEventListeners.Workspace, WorkspaceKind.Host), Shared]
SolutionEvents\HostLegacySolutionEventsWorkspaceEventListener.cs (1)
27[ExportEventListener(WellKnownEventListeners.Workspace, WorkspaceKind.Host), Shared]
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
Structure\AbstractSyntaxStructureProviderTests.cs (1)
24protected virtual string WorkspaceKind => CodeAnalysis.WorkspaceKind.Host;
Workspaces\EditorTestWorkspace.cs (1)
33string? workspaceKind = WorkspaceKind.Host,
Microsoft.CodeAnalysis.Features (3)
AddImport\AbstractAddImportFeatureService.cs (1)
167=> project.Solution.WorkspaceKind is WorkspaceKind.Host or WorkspaceKind.RemoteWorkspace;
Completion\Providers\ImportCompletionProvider\AbstractImportCompletionCacheServiceFactory.cs (1)
41if (workspace.Kind == WorkspaceKind.Host)
Workspace\CompileTimeSolutionProvider.cs (1)
28[ExportWorkspaceServiceFactory(typeof(ICompileTimeSolutionProvider), [WorkspaceKind.Host]), Shared]
Microsoft.CodeAnalysis.LanguageServer (2)
HostWorkspace\LanguageServerWorkspace.cs (1)
48: base(host, WorkspaceKind.Host)
HostWorkspace\VSCodeAnalyzerLoaderProviderFactory.cs (1)
14[ExportWorkspaceService(typeof(IAnalyzerAssemblyLoaderProvider), [WorkspaceKind.Host]), Shared]
Microsoft.CodeAnalysis.LanguageServer.Protocol (7)
Features\EditAndContinue\EditAndContinueDiagnosticSource_OpenDocument.cs (1)
31if (designTimeSolution.WorkspaceKind != WorkspaceKind.Host ||
Features\Options\ClientFallbackAnalyzerConfigOptionsProvider.cs (1)
20[WorkspaceKind.Host, WorkspaceKind.Interactive, WorkspaceKind.SemanticSearch, WorkspaceKind.MetadataAsSource, WorkspaceKind.MiscellaneousFiles, WorkspaceKind.Debugger, WorkspaceKind.Preview])]
Features\Options\SolutionAnalyzerConfigOptionsUpdater.cs (1)
27[WorkspaceKind.Host, WorkspaceKind.Interactive, WorkspaceKind.SemanticSearch, WorkspaceKind.MetadataAsSource, WorkspaceKind.MiscellaneousFiles, WorkspaceKind.Debugger, WorkspaceKind.Preview]), Shared]
Workspaces\LspWorkspaceManager.cs (3)
254/// Returns the LSP solution associated with the workspace with workspace kind <see cref="WorkspaceKind.Host"/>. 265var (hostWorkspace, hostWorkspaceSolution, isForked) = updatedSolutions.FirstOrDefault(lspSolution => lspSolution.Solution.WorkspaceKind is WorkspaceKind.Host); 272/// Returns the LSP solution associated with the workspace with kind <see cref="WorkspaceKind.Host"/>. This is the
Workspaces\LspWorkspaceRegistrationEventListener.cs (1)
14WorkspaceKind.Host,
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (3)
Workspaces\LspWorkspaceManagerTests.cs (3)
569Assert.Equal(WorkspaceKind.Host, workspace1?.Kind); 607Assert.Equal(WorkspaceKind.Host, workspace?.Kind); 646Assert.Equal(WorkspaceKind.Host, workspace?.Kind);
Microsoft.CodeAnalysis.Workspaces (2)
Workspace\Workspace.cs (1)
119/// This is generally <see cref="WorkspaceKind.Host"/> if originating from the host environment, but may be
Workspace\WorkspaceKind.cs (1)
12public const string Host = nameof(Host);
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (4)
Workspaces\TestWorkspace.cs (1)
19string? workspaceKind = WorkspaceKind.Host,
Workspaces\TestWorkspace`1.cs (3)
63string? workspaceKind = WorkspaceKind.Host, 69: base(GetHostServices(ref composition, configurationOptions != null), workspaceKind ?? WorkspaceKind.Host) 86_workspaceKind = workspaceKind ?? WorkspaceKind.Host;
Microsoft.VisualStudio.LanguageServices (6)
DesignerAttribute\VisualStudioDesignerAttributeService.cs (1)
31[ExportEventListener(WellKnownEventListeners.Workspace, WorkspaceKind.Host), Shared]
Diagnostics\VisualStudioDiagnosticAnalyzerProvider.WorkspaceEventListener.cs (1)
26[ExportEventListener(WellKnownEventListeners.Workspace, WorkspaceKind.Host, WorkspaceKind.Interactive, WorkspaceKind.SemanticSearch), Shared]
ProjectSystem\VisualStudioWorkspace.cs (1)
30: base(hostServices, WorkspaceKind.Host)
ProjectSystem\VisualStudioWorkspaceImpl.SolutionAnalyzerSetterService.cs (1)
19[ExportWorkspaceServiceFactory(typeof(ISolutionAnalyzerSetterWorkspaceService), [WorkspaceKind.Host]), Shared]
Remote\VisualStudioRemoteHostClientProvider.cs (1)
29[ExportWorkspaceServiceFactory(typeof(IRemoteHostClientProvider), [WorkspaceKind.Host, WorkspaceKind.Preview]), Shared]
Remote\VisualStudioWorkspaceServiceHubConnector.cs (1)
21[ExportEventListener(WellKnownEventListeners.Workspace, WorkspaceKind.Host), Shared]
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (2)
EditorConfigSettings\Aggregator\SettingsAggregatorTests.cs (1)
20=> new AdhocWorkspace(VisualStudioTestCompositions.LanguageServices.AddParts(additionalParts).GetHostServices(), WorkspaceKind.Host);
EditorConfigSettings\DataProvider\DataProviderTests.cs (1)
28var workspace = new AdhocWorkspace(VisualStudioTestCompositions.LanguageServices.GetHostServices(), WorkspaceKind.Host);