183 references to WorkspaceKind
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (25)
ChangeSignature\RemoveParametersTests.cs (1)
377workspaceKind: WorkspaceKind.Interactive,
Completion\CompletionProviders\TypeImportCompletionProviderTests.cs (1)
1392var completionList = await GetCompletionListAsync(markup, workspaceKind: WorkspaceKind.Interactive).ConfigureAwait(false);
EditorConfigSettings\Updater\SettingsUpdaterTests.cs (1)
37var workspace = new AdhocWorkspace(EditorTestCompositions.EditorFeatures.GetHostServices(), WorkspaceKind.Host);
EncapsulateField\EncapsulateFieldCommandHandlerTests.cs (1)
204workspaceKind: WorkspaceKind.Interactive,
ExtractInterface\ExtractInterfaceTests.cs (1)
1451workspaceKind: WorkspaceKind.Interactive,
ExtractMethod\ExtractMethodTests.cs (1)
11236workspaceKind: WorkspaceKind.Interactive,
Organizing\OrganizeTypeDeclarationTests.cs (1)
1177workspaceKind: WorkspaceKind.Interactive,
QuickInfo\SemanticQuickInfoSourceTests.cs (1)
6285using var workspace = EditorTestWorkspace.Create(XElement.Parse(workspaceDefinition), workspaceKind: WorkspaceKind.Interactive);
Structure\MetadataAsSource\AccessorDeclarationStructureTests.cs (1)
17protected override string WorkspaceKind => CodeAnalysis.WorkspaceKind.MetadataAsSource;
Structure\MetadataAsSource\ConstructorDeclarationStructureTests.cs (1)
16protected override string WorkspaceKind => CodeAnalysis.WorkspaceKind.MetadataAsSource;
Structure\MetadataAsSource\ConversionOperatorDeclarationStructureTests.cs (1)
16protected override string WorkspaceKind => CodeAnalysis.WorkspaceKind.MetadataAsSource;
Structure\MetadataAsSource\DelegateDeclarationStructureTests.cs (1)
17protected override string WorkspaceKind => CodeAnalysis.WorkspaceKind.MetadataAsSource;
Structure\MetadataAsSource\DestructorDeclarationStructureTests.cs (1)
17protected override string WorkspaceKind => CodeAnalysis.WorkspaceKind.MetadataAsSource;
Structure\MetadataAsSource\EnumDeclarationStructureTests.cs (1)
16protected override string WorkspaceKind => CodeAnalysis.WorkspaceKind.MetadataAsSource;
Structure\MetadataAsSource\EnumMemberDeclarationStructureTests.cs (1)
17protected override string WorkspaceKind => CodeAnalysis.WorkspaceKind.MetadataAsSource;
Structure\MetadataAsSource\EventDeclarationStructureTests.cs (1)
16protected override string WorkspaceKind => CodeAnalysis.WorkspaceKind.MetadataAsSource;
Structure\MetadataAsSource\EventFieldDeclarationStructureTests.cs (1)
17protected override string WorkspaceKind => CodeAnalysis.WorkspaceKind.MetadataAsSource;
Structure\MetadataAsSource\FieldDeclarationStructureTests.cs (1)
17protected override string WorkspaceKind => CodeAnalysis.WorkspaceKind.MetadataAsSource;
Structure\MetadataAsSource\IndexerDeclarationStructureTests.cs (1)
16protected override string WorkspaceKind => CodeAnalysis.WorkspaceKind.MetadataAsSource;
Structure\MetadataAsSource\InvalidIdentifierStructureTests.cs (1)
27protected override string WorkspaceKind => CodeAnalysis.WorkspaceKind.MetadataAsSource;
Structure\MetadataAsSource\MethodDeclarationStructureTests.cs (1)
16protected override string WorkspaceKind => CodeAnalysis.WorkspaceKind.MetadataAsSource;
Structure\MetadataAsSource\OperatorDeclarationStructureTests.cs (1)
16protected override string WorkspaceKind => CodeAnalysis.WorkspaceKind.MetadataAsSource;
Structure\MetadataAsSource\PropertyDeclarationStructureTests.cs (1)
16protected override string WorkspaceKind => CodeAnalysis.WorkspaceKind.MetadataAsSource;
Structure\MetadataAsSource\RegionDirectiveStructureTests.cs (1)
17protected override string WorkspaceKind => CodeAnalysis.WorkspaceKind.MetadataAsSource;
Structure\MetadataAsSource\TypeDeclarationStructureTests.cs (1)
18protected override string WorkspaceKind => CodeAnalysis.WorkspaceKind.MetadataAsSource;
Microsoft.CodeAnalysis.CSharp.Features (7)
CodeRefactorings\ConvertLocalFunctionToMethod\CSharpConvertLocalFunctionToMethodCodeRefactoringProvider.cs (1)
36if (document.Project.Solution.WorkspaceKind == WorkspaceKind.MiscellaneousFiles)
CodeRefactorings\InlineTemporary\InlineTemporaryCodeRefactoringProvider.cs (1)
44if (document.Project.Solution.WorkspaceKind == WorkspaceKind.MiscellaneousFiles)
CodeRefactorings\SyncNamespace\CSharpChangeNamespaceService.cs (1)
44if (document.Project.Solution.WorkspaceKind == WorkspaceKind.MiscellaneousFiles
CodeRefactorings\UseExplicitOrImplicitType\AbstractUseTypeCodeRefactoringProvider.cs (1)
30if (document.Project.Solution.WorkspaceKind == WorkspaceKind.MiscellaneousFiles)
CodeRefactorings\UseRecursivePatterns\UseRecursivePatternsCodeRefactoringProvider.cs (1)
49if (document.Project.Solution.WorkspaceKind == WorkspaceKind.MiscellaneousFiles)
Completion\CompletionProviders\SnippetCompletionProvider.cs (2)
85solution.WorkspaceKind is WorkspaceKind.Debugger or WorkspaceKind.Interactive)
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (2)
ExtractClass\ExtractClassTests.cs (2)
36public string WorkspaceKind { get; set; } = CodeAnalysis.WorkspaceKind.Host; 139WorkspaceKind = WorkspaceKind.MiscellaneousFiles
Microsoft.CodeAnalysis.EditorFeatures (10)
EditAndContinue\PdbMatchingSourceTextProvider.cs (1)
22[ExportEventListener(WellKnownEventListeners.Workspace, WorkspaceKind.Host), Shared]
InlineRename\InlineRenameSession.cs (1)
266if (Workspace.Kind == WorkspaceKind.Interactive)
Interactive\InteractiveWorkspace.cs (1)
18: base(hostServices, WorkspaceKind.Interactive)
LanguageServer\AlwaysActiveLanguageClientEventListener.cs (1)
23[ExportEventListener(WellKnownEventListeners.Workspace, WorkspaceKind.Host), Shared]
Organizing\OrganizeDocumentCommandHandler.cs (1)
83if (workspace.Kind == WorkspaceKind.MiscellaneousFiles)
SemanticSearch\SemanticSeatchTextBufferSupportsFeatureService.cs (1)
13[ExportWorkspaceService(typeof(ITextBufferSupportsFeatureService), WorkspaceKind.SemanticSearch), Shared]
Shared\Preview\PreviewWorkspace.cs (3)
17: base(MefHostServices.DefaultHost, WorkspaceKind.Preview) 22: base(hostServices, WorkspaceKind.Preview) 27: base(solution.Workspace.Services.HostServices, WorkspaceKind.Preview)
SolutionEvents\HostLegacySolutionEventsWorkspaceEventListener.cs (1)
27[ExportEventListener(WellKnownEventListeners.Workspace, WorkspaceKind.Host), Shared]
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (4)
Structure\AbstractSyntaxStructureProviderTests.cs (2)
24protected virtual string WorkspaceKind => CodeAnalysis.WorkspaceKind.Host; 30IsMetadataAsSource = WorkspaceKind == CodeAnalysis.WorkspaceKind.MetadataAsSource,
Workspaces\EditorTestWorkspace.cs (1)
33string? workspaceKind = WorkspaceKind.Host,
Workspaces\InteractiveCSharpTestWorkspaceFixture.cs (1)
24return EditorTestWorkspace.Create(XElement.Parse(workspaceDefinition), composition: composition, workspaceKind: WorkspaceKind.Interactive);
Microsoft.CodeAnalysis.EditorFeatures.Wpf (5)
Interactive\InteractiveDocumentNavigationServiceFactory.cs (1)
14[ExportWorkspaceServiceFactory(typeof(IDocumentNavigationService), [WorkspaceKind.Interactive]), Shared]
Interactive\InteractiveGlobalUndoServiceFactory.cs (1)
17[ExportWorkspaceServiceFactory(typeof(IGlobalUndoService), [WorkspaceKind.Interactive]), Shared]
Interactive\InteractiveSupportsFeatureService.cs (2)
17[ExportWorkspaceService(typeof(ITextBufferSupportsFeatureService), [WorkspaceKind.Interactive]), Shared] 55[ExportWorkspaceService(typeof(IDocumentSupportsFeatureService), [WorkspaceKind.Interactive]), Shared]
Interactive\InteractiveTextUndoHistoryWorkspaceServiceFactory.cs (1)
17[ExportWorkspaceServiceFactory(typeof(ITextUndoHistoryWorkspaceService), [WorkspaceKind.Interactive]), Shared]
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (1)
Rename\RenameCommandHandlerTests.vb (1)
59workspaceKind:=WorkspaceKind.Interactive,
Microsoft.CodeAnalysis.Features (26)
AddConstructorParametersFromMembers\AddConstructorParametersFromMembersCodeRefactoringProvider.cs (1)
40if (document.Project.Solution.WorkspaceKind == WorkspaceKind.MiscellaneousFiles)
AddImport\AbstractAddImportFeatureService.cs (2)
162=> project.Solution.WorkspaceKind is WorkspaceKind.Host or WorkspaceKind.RemoteWorkspace;
CodeRefactorings\CodeRefactoringService.cs (1)
76if (document.Project.Solution.WorkspaceKind == WorkspaceKind.Interactive)
CodeRefactorings\ExtractMethod\AbstractExtractMethodCodeRefactoringProvider.cs (1)
40if (solution.WorkspaceKind == WorkspaceKind.MiscellaneousFiles)
CodeRefactorings\MoveType\MoveTypeCodeRefactoringProvider.cs (1)
25if (document.Project.Solution.WorkspaceKind == WorkspaceKind.MiscellaneousFiles)
CodeRefactorings\SyncNamespace\AbstractSyncNamespaceCodeRefactoringProvider.cs (1)
23if (document.Project.Solution.WorkspaceKind == WorkspaceKind.MiscellaneousFiles ||
Completion\CompletionService.cs (1)
128/// <see cref="WorkspaceKind"/> and <see cref="Project.Language"/> which are fast operations.
Completion\CompletionService.ProviderManager.cs (1)
98if (project is null || project.Solution.WorkspaceKind == WorkspaceKind.Interactive)
Completion\Providers\ImportCompletionProvider\AbstractImportCompletionCacheServiceFactory.cs (1)
41if (workspace.Kind == WorkspaceKind.Host)
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.cs (1)
37if (document.Project.Solution.WorkspaceKind == WorkspaceKind.MiscellaneousFiles)
DocumentHighlighting\AbstractDocumentHighlightsService.cs (2)
243Debug.Assert(solution.WorkspaceKind is WorkspaceKind.Interactive or WorkspaceKind.MiscellaneousFiles);
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingSolutionCrawlerLogger.cs (1)
98if (workspaceKind == WorkspaceKind.Preview)
GenerateDefaultConstructors\GenerateDefaultConstructorsCodeRefactoringProvider.cs (1)
44if (document.Project.Solution.WorkspaceKind == WorkspaceKind.MiscellaneousFiles)
GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndGetHashCodeFromMembersCodeRefactoringProvider.cs (1)
54if (document.Project.Solution.WorkspaceKind == WorkspaceKind.MiscellaneousFiles)
IntroduceParameter\AbstractIntroduceParameterCodeRefactoringProvider.cs (1)
52if (document.Project.Solution.WorkspaceKind == WorkspaceKind.MiscellaneousFiles)
IntroduceVariable\IntroduceVariableCodeRefactoringProvider.cs (1)
26if (document.Project.Solution.WorkspaceKind == WorkspaceKind.MiscellaneousFiles)
MetadataAsSource\MetadataAsSourceWorkspace.cs (1)
9internal sealed class MetadataAsSourceWorkspace(MetadataAsSourceFileService fileService, HostServices hostServices) : Workspace(hostServices, WorkspaceKind.MetadataAsSource)
MetadataAsSource\SymbolMappingServiceFactory.cs (2)
15[ExportWorkspaceServiceFactory(typeof(ISymbolMappingService), [WorkspaceKind.MetadataAsSource])] 34if (document.Project.Solution.WorkspaceKind is not WorkspaceKind.MetadataAsSource)
NameTupleElement\AbstractNameTupleElementCodeRefactoringProvider.cs (1)
43if (document.Project.Solution.WorkspaceKind == WorkspaceKind.MiscellaneousFiles)
SemanticSearch\SemanticSearchDocumentSupportsFeatureService.cs (1)
12[ExportWorkspaceService(typeof(IDocumentSupportsFeatureService), WorkspaceKind.SemanticSearch), Shared]
SemanticSearch\SemanticSearchWorkspace.cs (1)
14: Workspace(services, WorkspaceKind.SemanticSearch)
UseNamedArguments\AbstractUseNamedArgumentsCodeRefactoringProvider.cs (1)
201if (document.Project.Solution.WorkspaceKind == WorkspaceKind.MiscellaneousFiles)
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 (31)
Extensions\ProtocolConversions.cs (1)
819IsMiscellaneous = project.Solution.WorkspaceKind == WorkspaceKind.MiscellaneousFiles,
Features\CodeFixes\CodeFixService.cs (3)
225if (document.Project.Solution.WorkspaceKind != WorkspaceKind.Interactive && includeSuppressionFixes) 453var isInteractive = document.Project.Solution.WorkspaceKind == WorkspaceKind.Interactive; 960return document.Project.Solution.WorkspaceKind == WorkspaceKind.Interactive
Features\EditAndContinue\EditAndContinueDiagnosticSource_OpenDocument.cs (1)
31if (designTimeSolution.WorkspaceKind != WorkspaceKind.Host ||
Features\Options\BlockStructureOptionsStorage.cs (1)
12=> GetBlockStructureOptions(globalOptions, project.Language, isMetadataAsSource: project.Solution.WorkspaceKind == WorkspaceKind.MetadataAsSource);
Features\Options\ClientFallbackAnalyzerConfigOptionsProvider.cs (7)
20[WorkspaceKind.Host, WorkspaceKind.Interactive, WorkspaceKind.SemanticSearch, WorkspaceKind.MetadataAsSource, WorkspaceKind.MiscellaneousFiles, WorkspaceKind.Debugger, WorkspaceKind.Preview])]
Features\Options\SolutionAnalyzerConfigOptionsUpdater.cs (7)
27[WorkspaceKind.Host, WorkspaceKind.Interactive, WorkspaceKind.SemanticSearch, WorkspaceKind.MetadataAsSource, WorkspaceKind.MiscellaneousFiles, WorkspaceKind.Debugger, WorkspaceKind.Preview]), Shared]
Workspaces\LspMiscellaneousFilesWorkspace.cs (1)
29: Workspace(hostServices, WorkspaceKind.MiscellaneousFiles), ILspService, ILspWorkspace
Workspaces\LspWorkspaceManager.cs (5)
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 333.Where(workspace => workspace.Kind != WorkspaceKind.MiscellaneousFiles) 334.Concat(registeredWorkspaces.Where(workspace => workspace.Kind == WorkspaceKind.MiscellaneousFiles))
Workspaces\LspWorkspaceRegistrationEventListener.cs (5)
14WorkspaceKind.Host, 15WorkspaceKind.MiscellaneousFiles, 16WorkspaceKind.MetadataAsSource, 17WorkspaceKind.Interactive, 18WorkspaceKind.SemanticSearch), Shared]
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (16)
Diagnostics\PullDiagnosticTests.cs (1)
1169await using var testLspServer = await CreateXmlTestLspServerAsync(xmlWorkspace, mutatingLspWorkspace, WorkspaceKind.Interactive, options);
Metadata\LspMetadataAsSourceWorkspaceTests.cs (2)
50Assert.Equal(WorkspaceKind.MetadataAsSource, (await GetWorkspaceForDocument(testLspServer, definition.Single().Uri)).Kind); 97Assert.Equal(WorkspaceKind.MetadataAsSource, workspaceForDocument.Kind);
UriTests.cs (5)
187Assert.Equal(WorkspaceKind.MiscellaneousFiles, workspace?.Kind); 199Assert.Equal(WorkspaceKind.MiscellaneousFiles, workspace?.Kind); 239Assert.Equal(WorkspaceKind.MiscellaneousFiles, workspace?.Kind); 247Assert.Equal(WorkspaceKind.MiscellaneousFiles, workspace?.Kind); 287Assert.Equal(WorkspaceKind.MiscellaneousFiles, workspace?.Kind);
Workspaces\LspWorkspaceManagerTests.cs (8)
333await using var testLspServer = await CreateXmlTestLspServerAsync(firstWorkspaceXml, mutatingLspWorkspace, workspaceKind: WorkspaceKind.MiscellaneousFiles); 365using var testWorkspaceTwo = CreateWorkspace(options: null, WorkspaceKind.MSBuild, mutatingLspWorkspace); 424using var testWorkspaceTwo = CreateWorkspace(options: null, workspaceKind: WorkspaceKind.MSBuild, mutatingLspWorkspace); 550Assert.Equal(WorkspaceKind.MiscellaneousFiles, workspace1?.Kind); 569Assert.Equal(WorkspaceKind.Host, workspace1?.Kind); 587Assert.Equal(WorkspaceKind.MiscellaneousFiles, workspace1?.Kind); 607Assert.Equal(WorkspaceKind.Host, workspace?.Kind); 646Assert.Equal(WorkspaceKind.Host, workspace?.Kind);
Microsoft.CodeAnalysis.Remote.ServiceHub (4)
Host\RemoteAnalyzerAssemblyLoaderService.cs (1)
17[ExportWorkspaceService(typeof(IAnalyzerAssemblyLoaderProvider), [WorkspaceKind.RemoteWorkspace]), Shared]
Host\RemoteWorkspace.cs (1)
32: base(hostServices, WorkspaceKind.RemoteWorkspace)
Host\RemoteWorkspaceManager.cs (1)
21/// cref="WorkspaceKind.RemoteWorkspace"/>. In future it should support workspaces of all kinds.
Services\DiagnosticAnalyzer\PerformanceTrackerService.cs (1)
24[ExportWorkspaceService(typeof(IPerformanceTrackerService), [WorkspaceKind.RemoteWorkspace]), Shared]
Microsoft.CodeAnalysis.VisualBasic.Features (1)
CodeRefactorings\InlineTemporary\VisualBasicInlineTemporaryCodeRefactoringProvider.vb (1)
33If document.Project.Solution.WorkspaceKind = WorkspaceKind.MiscellaneousFiles Then
Microsoft.CodeAnalysis.Workspaces (12)
FindSymbols\SymbolFinder.cs (2)
262Debug.Assert(solution.WorkspaceKind is WorkspaceKind.Interactive or WorkspaceKind.MiscellaneousFiles);
FindSymbols\SymbolTree\SymbolTreeInfoCacheService.cs (1)
53_scheduler = workspace.Kind == WorkspaceKind.RemoteWorkspace ? TaskScheduler.Default : s_exclusiveScheduler;
Shared\Extensions\ISolutionExtensions.cs (1)
79=> solution.WorkspaceKind == WorkspaceKind.RemoteWorkspace
Workspace\AdhocWorkspace.cs (1)
19public sealed class AdhocWorkspace(HostServices host, string workspaceKind = WorkspaceKind.Custom) : Workspace(host, workspaceKind)
Workspace\Host\Mef\ExportLanguageServiceAttribute.cs (1)
40/// <see cref="WorkspaceKind"/>s that the service is specified for.
Workspace\Host\Mef\ExportLanguageServiceFactoryAttribute.cs (1)
40/// <see cref="WorkspaceKind"/>s that the service is specified for.
Workspace\Host\Mef\ExportWorkspaceServiceAttribute.cs (1)
34/// <see cref="WorkspaceKind"/>s that the service is specified for.
Workspace\Host\Mef\ExportWorkspaceServiceFactoryAttribute.cs (2)
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> 34/// <see cref="WorkspaceKind"/>s that the service is specified for.
Workspace\Solution\Solution.cs (1)
95Contract.ThrowIfTrue(this.WorkspaceKind == CodeAnalysis.WorkspaceKind.RemoteWorkspace, "Access .Workspace off of a RemoteWorkspace Solution is not supported.");
Workspace\Workspace.cs (1)
109/// This is generally <see cref="WorkspaceKind.Host"/> if originating from the host environment, but may be
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\MSBuildWorkspace.cs (1)
40: base(hostServices, WorkspaceKind.MSBuild)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (7)
Workspaces\TestWorkspace.cs (1)
19string? workspaceKind = WorkspaceKind.Host,
Workspaces\TestWorkspace`1.cs (6)
63string? workspaceKind = WorkspaceKind.Host, 69: base(GetHostServices(ref composition, configurationOptions != null), workspaceKind ?? WorkspaceKind.Host) 86_workspaceKind = workspaceKind ?? WorkspaceKind.Host; 385WorkspaceKind.MiscellaneousFiles => false, 386WorkspaceKind.Interactive => false, 387WorkspaceKind.SemanticSearch => false,
Microsoft.VisualStudio.LanguageServices (15)
DebuggerIntelliSense\DebuggerIntellisenseWorkspace.cs (1)
15: base(solution.Workspace.Services.HostServices, WorkspaceKind.Debugger)
DesignerAttribute\VisualStudioDesignerAttributeService.cs (1)
31[ExportEventListener(WellKnownEventListeners.Workspace, WorkspaceKind.Host), Shared]
Diagnostics\VisualStudioDiagnosticAnalyzerProvider.WorkspaceEventListener.cs (3)
26[ExportEventListener(WellKnownEventListeners.Workspace, WorkspaceKind.Host, WorkspaceKind.Interactive, WorkspaceKind.SemanticSearch), Shared]
InheritanceMargin\InheritanceMarginTaggerProvider.cs (1)
79if (document.Project.Solution.WorkspaceKind == WorkspaceKind.Interactive)
ProjectSystem\MiscellaneousFilesWorkspace.cs (3)
65: base(visualStudioWorkspace.Services.HostServices, WorkspaceKind.MiscellaneousFiles) 262return registration.Workspace != null && registration.Workspace.Kind != WorkspaceKind.MetadataAsSource && registration.Workspace.Kind != WorkspaceKind.MiscellaneousFiles;
ProjectSystem\VisualStudioWorkspace.cs (1)
30: base(hostServices, WorkspaceKind.Host)
ProjectSystem\VisualStudioWorkspaceImpl.SolutionAnalyzerSetterService.cs (1)
19[ExportWorkspaceServiceFactory(typeof(ISolutionAnalyzerSetterWorkspaceService), [WorkspaceKind.Host]), Shared]
Remote\VisualStudioRemoteHostClientProvider.cs (2)
29[ExportWorkspaceServiceFactory(typeof(IRemoteHostClientProvider), [WorkspaceKind.Host, WorkspaceKind.Preview]), Shared]
Remote\VisualStudioWorkspaceServiceHubConnector.cs (1)
21[ExportEventListener(WellKnownEventListeners.Workspace, WorkspaceKind.Host), Shared]
Snippets\AbstractSnippetCommandHandler.cs (1)
312if (Workspace.TryGetWorkspace(textContainer, out var workspace) && workspace.Kind == WorkspaceKind.Interactive)
Microsoft.VisualStudio.LanguageServices.CSharp (1)
SemanticSearch\SemanticSearchDocumentNavigationService.cs (1)
19[ExportWorkspaceService(typeof(IDocumentNavigationService), WorkspaceKind.SemanticSearch), 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);
Microsoft.VisualStudio.LanguageServices.LiveShare (2)
Client\CloudEnvironmentSupportsFeatureService.cs (1)
16[ExportWorkspaceService(typeof(ITextBufferSupportsFeatureService), [WorkspaceKind.CloudEnvironmentClientWorkspace]), Shared]
Client\RemoteLanguageServiceWorkspace.cs (1)
86: base(VisualStudioMefHostServices.Create(exportProvider), WorkspaceKind.CloudEnvironmentClientWorkspace)
Microsoft.VisualStudio.LanguageServices.UnitTests (3)
Completion\CSharpCompletionSnippetNoteTests.vb (1)
117WorkspaceKind.Interactive)
DebuggerIntelliSense\TestState.vb (1)
35workspaceKind:=WorkspaceKind.Debugger,
Snippets\SnippetTestState.vb (1)
116Dim state = New SnippetTestState(workspaceXml, languageName, startActiveSession, extraParts, excludedTypes:=Enumerable.Empty(Of Type), WorkspaceKind.Interactive)
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
Help\VisualBasicHelpContextService.vb (1)
48Dim visitor = New Visitor(token.Span, Await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(False), document.Project.Solution.WorkspaceKind <> WorkspaceKind.MetadataAsSource, Me, cancellationToken)
Roslyn.VisualStudio.Next.UnitTests (5)
Services\ServiceHubServicesTests.cs (2)
1574Assert.Equal(WorkspaceKind.RemoteWorkspace, solution1.WorkspaceKind); 1575Assert.Equal(WorkspaceKind.RemoteWorkspace, solution2.WorkspaceKind);
Services\SolutionServiceTests.cs (3)
75Assert.Equal(WorkspaceKind.RemoteWorkspace, synched.WorkspaceKind); 152Assert.Equal(WorkspaceKind.RemoteWorkspace, first.WorkspaceKind); 1252Assert.Equal(WorkspaceKind.RemoteWorkspace, recoveredSolution.WorkspaceKind);