4 writes to _currentWatcherCount
Microsoft.CodeAnalysis.LanguageServer (4)
HostWorkspace\FileWatching\DefaultFileChangeWatcher.cs (4)
118_currentWatcherCount++; 174_currentWatcherCount--; 242_currentWatcherCount++; 284_currentWatcherCount--;
7 references to _currentWatcherCount
Microsoft.CodeAnalysis.LanguageServer (7)
HostWorkspace\FileWatching\DefaultFileChangeWatcher.cs (7)
206if (_currentWatcherCount < _maxWatcherCount) 248Contract.ThrowIfFalse(_currentWatcherCount <= _maxWatcherCount); 431var paths = new List<(string path, ImmutableArray<string> filters)>(capacity: watcher._currentWatcherCount); 441Contract.ThrowIfTrue(paths.Count != watcher._currentWatcherCount, $"{nameof(watcher._currentWatcherCount)} is out of sync with the actual number of watchers."); 442Contract.ThrowIfTrue(currentWatcherCountPerRoots != watcher._currentWatcherCount, $"{nameof(watcher._currentWatcherCount)} is out of sync with the actual number of watchers in the roots.");