1 write to Kind
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Workspace.cs (1)
72Kind = workspaceKind;
49 references to Kind
GenerateDocumentationAndConfigFiles (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefWorkspaceServices.cs (2)
59internal string? WorkspaceKind => _workspace.Kind; 141service = ImmutableInterlocked.GetOrAdd(ref _serviceMap, serviceType, serviceType => LayeredServiceUtilities.PickService(serviceType, _workspace.Kind, _services));
Microsoft.CodeAnalysis.Analyzers (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefWorkspaceServices.cs (2)
59internal string? WorkspaceKind => _workspace.Kind; 141service = ImmutableInterlocked.GetOrAdd(ref _serviceMap, serviceType, serviceType => LayeredServiceUtilities.PickService(serviceType, _workspace.Kind, _services));
Microsoft.CodeAnalysis.BannedApiAnalyzers (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefWorkspaceServices.cs (2)
59internal string? WorkspaceKind => _workspace.Kind; 141service = ImmutableInterlocked.GetOrAdd(ref _serviceMap, serviceType, serviceType => LayeredServiceUtilities.PickService(serviceType, _workspace.Kind, _services));
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefWorkspaceServices.cs (2)
59internal string? WorkspaceKind => _workspace.Kind; 141service = ImmutableInterlocked.GetOrAdd(ref _serviceMap, serviceType, serviceType => LayeredServiceUtilities.PickService(serviceType, _workspace.Kind, _services));
Microsoft.CodeAnalysis.EditorFeatures (2)
InlineRename\InlineRenameSession.cs (1)
258if (Workspace.Kind == WorkspaceKind.Interactive)
Organizing\OrganizeDocumentCommandHandler.cs (1)
82if (workspace.Kind == WorkspaceKind.MiscellaneousFiles)
Microsoft.CodeAnalysis.LanguageServer (1)
HostWorkspace\LanguageServerWorkspace.cs (1)
144return $"""LanguageServerWorkspace(Kind: "{Kind}")""";
Microsoft.CodeAnalysis.LanguageServer.Protocol (5)
Handler\ServerLifetime\LspServiceLifeCycleManager.cs (1)
49var hostWorkspace = _lspWorkspaceRegistrationService.GetAllRegistrations().FirstOrDefault(w => w.Kind == WorkspaceKind.Host);
Workspaces\LspWorkspaceManager.cs (3)
296var searchedWorkspaceKinds = string.Join(";", lspSolutions.SelectAsArray(lspSolution => lspSolution.Solution.Workspace.Kind)); 328.Where(workspace => workspace.Kind != WorkspaceKind.MiscellaneousFiles) 330.. registeredWorkspaces.Where(workspace => workspace.Kind == WorkspaceKind.MiscellaneousFiles),
Workspaces\LspWorkspaceRegistrationService.cs (1)
36m["WorkspaceKind"] = workspace.Kind;
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (15)
Definitions\GoToTypeDefinitionTests.cs (1)
256Assert.Equal(WorkspaceKind.MetadataAsSource, (await GetWorkspaceForDocument(testLspServer, results.Single().DocumentUri)).Kind);
Metadata\LspMetadataAsSourceWorkspaceTests.cs (3)
49Assert.Equal(WorkspaceKind.MetadataAsSource, (await GetWorkspaceForDocument(testLspServer, definition.Single().DocumentUri)).Kind); 55Assert.Equal(WorkspaceKind.MetadataAsSource, (await GetWorkspaceForDocument(testLspServer, definition.Single().DocumentUri)).Kind); 95Assert.Equal(WorkspaceKind.MetadataAsSource, workspaceForDocument.Kind);
UriTests.cs (6)
187Assert.Equal(WorkspaceKind.MiscellaneousFiles, workspace?.Kind); 197Assert.Equal(WorkspaceKind.MiscellaneousFiles, workspace?.Kind); 235Assert.Equal(WorkspaceKind.MiscellaneousFiles, workspace?.Kind); 243Assert.Equal(WorkspaceKind.MiscellaneousFiles, workspace?.Kind); 281Assert.Equal(WorkspaceKind.MiscellaneousFiles, workspace?.Kind); 388return Task.FromResult(new ResolvedDocumentInfo(context.Workspace!.Kind!, context.GetRequiredDocument().Project.Language));
Workspaces\LspWorkspaceManagerTests.cs (5)
508Assert.Equal(WorkspaceKind.MiscellaneousFiles, workspace1?.Kind); 527Assert.Equal(WorkspaceKind.Host, workspace1?.Kind); 545Assert.Equal(WorkspaceKind.MiscellaneousFiles, workspace1?.Kind); 565Assert.Equal(WorkspaceKind.Host, workspace?.Kind); 604Assert.Equal(WorkspaceKind.Host, workspace?.Kind);
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefWorkspaceServices.cs (2)
59internal string? WorkspaceKind => _workspace.Kind; 141service = ImmutableInterlocked.GetOrAdd(ref _serviceMap, serviceType, serviceType => LayeredServiceUtilities.PickService(serviceType, _workspace.Kind, _services));
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
ExternalAccess\UnitTesting\Api\UnitTestingBrokeredServiceImplementation.cs (1)
24return NewUnitTestingIncrementalAnalyzerProvider.TryRegister(workspace.Kind, workspace.Services.SolutionServices, analyzerName, provider);
Microsoft.CodeAnalysis.Workspaces (7)
FindSymbols\SymbolTree\SymbolTreeInfoCacheService.cs (1)
54_scheduler = workspace.Kind == WorkspaceKind.RemoteWorkspace ? TaskScheduler.Default : s_exclusiveScheduler;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefWorkspaceServices.cs (2)
59internal string? WorkspaceKind => _workspace.Kind; 141service = ImmutableInterlocked.GetOrAdd(ref _serviceMap, serviceType, serviceType => LayeredServiceUtilities.PickService(serviceType, _workspace.Kind, _services));
Workspace\Host\EventListener\IWorkspaceEventListenerProvider.cs (1)
31return new Service(workspace, EventListenerTracker.GetListeners(workspace.Kind, eventListeners));
Workspace\Host\HostLanguageServices.cs (1)
70WorkspaceServices.Workspace.Kind));
Workspace\Host\HostWorkspaceServices.cs (1)
90Workspace.Kind));
Workspace\Solution\Solution.cs (1)
64new SolutionState(workspace.Kind, workspace.Services.SolutionServices, solutionAttributes, options, analyzerReferences, fallbackAnalyzerOptions),
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
WorkspaceTests\AdhocWorkspaceTests.cs (1)
396: base(solution.Workspace.Services.HostServices, solution.Workspace.Kind)
Microsoft.VisualStudio.LanguageServices (3)
ProjectSystem\MiscellaneousFilesWorkspace.cs (2)
266return registration.Workspace != null && registration.Workspace.Kind != WorkspaceKind.MetadataAsSource && registration.Workspace.Kind != WorkspaceKind.MiscellaneousFiles;
Snippets\AbstractSnippetCommandHandler.cs (1)
312if (Workspace.TryGetWorkspace(textContainer, out var workspace) && workspace.Kind == WorkspaceKind.Interactive)
Roslyn.Diagnostics.Analyzers (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefWorkspaceServices.cs (2)
59internal string? WorkspaceKind => _workspace.Kind; 141service = ImmutableInterlocked.GetOrAdd(ref _serviceMap, serviceType, serviceType => LayeredServiceUtilities.PickService(serviceType, _workspace.Kind, _services));
Text.Analyzers (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefWorkspaceServices.cs (2)
59internal string? WorkspaceKind => _workspace.Kind; 141service = ImmutableInterlocked.GetOrAdd(ref _serviceMap, serviceType, serviceType => LayeredServiceUtilities.PickService(serviceType, _workspace.Kind, _services));