1 write to Workspace
Microsoft.CodeAnalysis.Features (1)
SolutionCrawler\SolutionCrawlerRegistrationService.cs (1)
316
Workspace
= 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)
101
Debug.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>();
81
var globalNotificationService = _registration.
Workspace
.Services.SolutionServices.ExportProvider
98
var orderedAnalyzers = analyzersGetter.GetOrderedAnalyzers(registration.
Workspace
, onlyHighPriorityAnalyzer);
100
SolutionCrawlerLogger.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)
251
var 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
)));
381
var data = new Data(projectId, needDependencyTracking, Listener.BeginAsyncOperation(nameof(Enqueue), tag: _registration.
Workspace
));