1 write to _projectStates
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.StateSet.cs (1)
38_projectStates = new ConcurrentDictionary<ProjectId, ProjectState>(concurrencyLevel: 2, capacity: 1);
9 references to _projectStates
Microsoft.CodeAnalysis.LanguageServer.Protocol (9)
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.StateSet.cs (9)
44if (_activeFileStates.IsEmpty && _projectStates.IsEmpty) 47if (_activeFileStates.Count == 1 && _projectStates.IsEmpty) 61.Concat(_projectStates.Where(kv => !kv.Value.IsEmpty()) 80if (_projectStates.TryGetValue(projectId, out var projectState) && !projectState.IsEmpty()) 90=> _projectStates.TryGetValue(projectId, out var projectState) && projectState.FromBuild; 96=> _projectStates.TryGetValue(projectId, out state); 102=> _projectStates.GetOrAdd(projectId, static (id, self) => new ProjectState(self, id), this); 170if (_projectStates.TryGetValue(id.ProjectId, out var state)) 181if (_projectStates.TryRemove(id, out var state))