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)
44if (_activeFileStates.IsEmpty && _projectStates.IsEmpty) 47if (_activeFileStates.Count == 1 && _projectStates.IsEmpty) 50var (documentId, state) = _activeFileStates.First(); 59_activeFileStates.Where(kv => !kv.Value.IsEmpty) 72foreach (var (documentId, state) in _activeFileStates) 87=> _activeFileStates.ContainsKey(documentId); 93=> _activeFileStates.TryGetValue(documentId, out state); 99=> _activeFileStates.GetOrAdd(documentId, id => new ActiveFileState(id)); 130if (!_activeFileStates.TryRemove(document.Id, out var activeFileState)) 165if (_activeFileStates.TryRemove(id, out _))