36 references to Kind
AnalyzerRunner (1)
IncrementalAnalyzerRunner.cs (1)
68var incrementalAnalyzerProvider = incrementalAnalyzerProviders.Where(x => x.Metadata.Name == incrementalAnalyzerName).SingleOrDefault(provider => provider.Metadata.WorkspaceKinds?.Contains(_workspace.Kind) ?? false)?.Value;
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
MefWorkspaceServices.cs (2)
55internal string WorkspaceKind => _workspace.Kind; 107if (TryGetServiceByLayer(_workspace.Kind, services, out service))
Microsoft.CodeAnalysis.EditorFeatures (2)
InlineRename\InlineRenameSession.cs (1)
270if (_workspace.Kind == WorkspaceKind.Interactive)
Organizing\OrganizeDocumentCommandHandler.cs (1)
107if (workspace.Kind == WorkspaceKind.MiscellaneousFiles)
Microsoft.CodeAnalysis.EditorFeatures.Cocoa (1)
Snippets\AbstractSnippetCommandHandler.cs (1)
296!(Workspace.TryGetWorkspace(args.SubjectBuffer.AsTextContainer(), out var workspace) && workspace.Kind == WorkspaceKind.Interactive);
Microsoft.CodeAnalysis.Features (11)
Completion\Providers\ImportCompletionProvider\AbstractImportCompletionCacheServiceFactory.cs (1)
43if (workspace.Kind == WorkspaceKind.Host)
ExternalAccess\UnitTesting\API\UnitTestingIncrementalAnalyzerProvider.cs (1)
52new[] { workspace.Kind });
SolutionCrawler\SolutionCrawlerLogger.cs (2)
51m[Kind] = workspace.Kind; 99if (workspace.Kind == WorkspaceKind.Preview)
SolutionCrawler\SolutionCrawlerRegistrationService.cs (5)
56if (workspace.Kind == WorkspaceKind.Preview) 77Contract.ThrowIfNull(workspace.Kind); 91GetAnalyzerProviders(workspace.Kind), 137Contract.ThrowIfNull(workspace.Kind); 139if (!TryGetProvider(workspace.Kind, lazyProviders, out var picked) || picked != lazyProvider)
SolutionCrawler\WorkCoordinator.HighPriorityProcessor.cs (2)
99&& _processor._registration.Workspace.Kind is WorkspaceKind.RemoteWorkspace) 101Debug.Fail($"Unexpected use of '{nameof(ExportIncrementalAnalyzerProviderAttribute.HighPriorityForActiveFile)}' in workspace kind '{_processor._registration.Workspace.Kind}' that cannot support active file tracking.");
Microsoft.CodeAnalysis.LanguageServer.Protocol (7)
Features\Diagnostics\DefaultDiagnosticAnalyzerService.cs (3)
121if (_workspace.Kind is WorkspaceKind.MiscellaneousFiles or WorkspaceKind.CloudEnvironmentClientWorkspace) 133DiagnosticsUpdatedArgs.DiagnosticsCreated(new DefaultUpdateArgsId(_workspace.Kind, kind, document.Id), 224new DefaultUpdateArgsId(_workspace.Kind, kind, documentId), _workspace, null, documentId.ProjectId, documentId));
Workspaces\LspWorkspaceManager.cs (3)
206var searchedWorkspaceKinds = string.Join(";", lspSolutions.SelectAsArray(lspSolution => lspSolution.Solution.Workspace.Kind)); 229.Where(workspace => workspace.Kind != WorkspaceKind.MiscellaneousFiles) 230.Concat(registeredWorkspaces.Where(workspace => workspace.Kind == WorkspaceKind.MiscellaneousFiles))
Workspaces\LspWorkspaceRegistrationService.cs (1)
34m["WorkspaceKind"] = workspace.Kind;
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
ExternalAccess\UnitTesting\Api\UnitTestingBrokeredServiceImplementation.cs (1)
27return NewUnitTestingIncrementalAnalyzerProvider.TryRegister(workspace.Kind, workspace.Services.SolutionServices, analyzerName, provider);
Microsoft.CodeAnalysis.Workspaces (6)
FindSymbols\SymbolTree\SymbolTreeInfoCacheService.cs (1)
53_scheduler = workspace.Kind == WorkspaceKind.RemoteWorkspace ? TaskScheduler.Default : s_exclusiveScheduler;
MefWorkspaceServices.cs (2)
55internal string WorkspaceKind => _workspace.Kind; 107if (TryGetServiceByLayer(_workspace.Kind, services, out service))
Workspace\Host\EventListener\EventListenerTracker.cs (2)
38if (!_eventListenerInitialized.Add(workspace.Kind)) 54return eventListeners.Where(l => l.Metadata.WorkspaceKinds.Contains(workspace.Kind))
Workspace\Solution\Solution.cs (1)
42: this(new SolutionState(workspace.Kind, workspace.PartialSemanticsEnabled, workspace.Services.SolutionServices, solutionAttributes, options, analyzerReferences))
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
WorkspaceTests\AdhocWorkspaceTests.cs (1)
420: base(solution.Workspace.Services.HostServices, solution.Workspace.Kind)
Microsoft.VisualStudio.LanguageServices (4)
ProjectSystem\MiscellaneousFilesWorkspace.cs (2)
261return registration.Workspace != null && registration.Workspace.Kind != WorkspaceKind.MetadataAsSource && registration.Workspace.Kind != WorkspaceKind.MiscellaneousFiles;
Snippets\AbstractSnippetCommandHandler.cs (1)
328!(Workspace.TryGetWorkspace(args.SubjectBuffer.AsTextContainer(), out var workspace) && workspace.Kind == WorkspaceKind.Interactive);
TableDataSource\VisualStudioBaseDiagnosticListTable.LiveTableDataSource.cs (1)
556return $"Kind:{e.Workspace.Kind}, Analyzer:{id}, Update:{e.Kind}, {(object?)e.DocumentId ?? e.ProjectId}, ({string.Join(Environment.NewLine, diagnostics)})";