1 write to _activeFileStates
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.StateSet.cs (1)
41
_activeFileStates
= new ConcurrentDictionary<DocumentId, ActiveFileState>(concurrencyLevel: 2, capacity: 10);
11 references to _activeFileStates
Microsoft.CodeAnalysis.LanguageServer.Protocol (11)
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.StateSet.cs (11)
53
foreach (var (documentId, state) in
_activeFileStates
)
67
if (
_activeFileStates
.IsEmpty && _projectStates.IsEmpty)
72
if (
_activeFileStates
.Count == 1 && _projectStates.IsEmpty)
75
var (documentId, state) =
_activeFileStates
.First();
86
_activeFileStates
.Where(kv => !kv.Value.IsEmpty)
99
foreach (var (documentId, state) in
_activeFileStates
)
114
=>
_activeFileStates
.ContainsKey(documentId);
120
=>
_activeFileStates
.TryGetValue(documentId, out state);
126
=>
_activeFileStates
.GetOrAdd(documentId, id => new ActiveFileState(id));
156
if (!
_activeFileStates
.TryRemove(document.Id, out var activeFileState))
191
if (
_activeFileStates
.TryRemove(id, out _))