1 write to Workspace
Microsoft.CodeAnalysis.Features (1)
SolutionCrawler\SolutionCrawlerRegistrationService.cs (1)
316Workspace = workspace;
22 references to Workspace
Microsoft.CodeAnalysis.Features (22)
SolutionCrawler\SolutionCrawlerRegistrationService.cs (1)
321=> Workspace.CurrentSolution;
SolutionCrawler\WorkCoordinator.cs (8)
49_documentTrackingService = _registration.Workspace.Services.GetRequiredService<IDocumentTrackingService>(); 50_solutionCrawlerOptions = _registration.Workspace.Services.GetService<ISolutionCrawlerOptionsService>(); 70_registration.Workspace.WorkspaceChanged += OnWorkspaceChanged; 71_registration.Workspace.TextDocumentOpened += OnTextDocumentOpened; 72_registration.Workspace.TextDocumentClosed += OnTextDocumentClosed; 95_registration.Workspace.WorkspaceChanged -= OnWorkspaceChanged; 96_registration.Workspace.TextDocumentOpened -= OnTextDocumentOpened; 97_registration.Workspace.TextDocumentClosed -= OnTextDocumentClosed;
SolutionCrawler\WorkCoordinator.HighPriorityProcessor.cs (3)
46_workItemQueue = new AsyncDocumentWorkItemQueue(processor._registration.ProgressReporter, processor._registration.Workspace); 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.");
SolutionCrawler\WorkCoordinator.IncrementalAnalyzerProcessor.cs (5)
79_documentTracker = _registration.Workspace.Services.GetRequiredService<IDocumentTrackingService>(); 81var globalNotificationService = _registration.Workspace.Services.SolutionServices.ExportProvider 98var orderedAnalyzers = analyzersGetter.GetOrderedAnalyzers(registration.Workspace, onlyHighPriorityAnalyzer); 100SolutionCrawlerLogger.LogAnalyzers(registration.CorrelationId, registration.Workspace, orderedAnalyzers, onlyHighPriorityAnalyzer); 150=> _registration.Workspace.GetOpenDocumentIds();
SolutionCrawler\WorkCoordinator.LowPriorityProcessor.cs (1)
37_workItemQueue = new AsyncProjectWorkItemQueue(processor._registration.ProgressReporter, processor._registration.Workspace);
SolutionCrawler\WorkCoordinator.NormalPriorityProcessor.cs (1)
55_workItemQueue = new AsyncDocumentWorkItemQueue(processor._registration.ProgressReporter, processor._registration.Workspace);
SolutionCrawler\WorkCoordinator.SemanticChangeProcessor.cs (3)
251var newAsyncToken = Listener.BeginAsyncOperation(nameof(Enqueue), tag: _registration.Workspace); 258_pendingWork.Add(documentId, new Data(project, documentId, document, changedMember, Listener.BeginAsyncOperation(nameof(Enqueue), tag: _registration.Workspace))); 381var data = new Data(projectId, needDependencyTracking, Listener.BeginAsyncOperation(nameof(Enqueue), tag: _registration.Workspace));