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)
44
if (_activeFileStates.IsEmpty &&
_projectStates
.IsEmpty)
47
if (_activeFileStates.Count == 1 &&
_projectStates
.IsEmpty)
61
.Concat(
_projectStates
.Where(kv => !kv.Value.IsEmpty())
80
if (
_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);
170
if (
_projectStates
.TryGetValue(id.ProjectId, out var state))
181
if (
_projectStates
.TryRemove(id, out var state))