1 write to _activeFileStates
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.StateSet.cs (1)
37
_activeFileStates
= new ConcurrentDictionary<DocumentId, ActiveFileState>(concurrencyLevel: 2, capacity: 10);
10 references to _activeFileStates
Microsoft.CodeAnalysis.LanguageServer.Protocol (10)
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.StateSet.cs (10)
44
if (
_activeFileStates
.IsEmpty && _projectStates.IsEmpty)
47
if (
_activeFileStates
.Count == 1 && _projectStates.IsEmpty)
50
var (documentId, state) =
_activeFileStates
.First();
59
_activeFileStates
.Where(kv => !kv.Value.IsEmpty)
72
foreach (var (documentId, state) in
_activeFileStates
)
87
=>
_activeFileStates
.ContainsKey(documentId);
93
=>
_activeFileStates
.TryGetValue(documentId, out state);
99
=>
_activeFileStates
.GetOrAdd(documentId, id => new ActiveFileState(id));
130
if (!
_activeFileStates
.TryRemove(document.Id, out var activeFileState))
165
if (
_activeFileStates
.TryRemove(id, out _))