1 write to ActiveWatchersRecursiveCount
Microsoft.CodeAnalysis.LanguageServer (1)
HostWorkspace\FileWatching\DefaultFileChangeWatcher.cs (1)
353node.ActiveWatchersRecursiveCount += delta;
7 references to ActiveWatchersRecursiveCount
Microsoft.CodeAnalysis.LanguageServer (7)
HostWorkspace\FileWatching\DefaultFileChangeWatcher.cs (7)
210var nodeToConsolidate = _roots.Values.MaxBy(static r => r.ActiveWatchersRecursiveCount); 214if (nodeToConsolidate.ActiveWatchersRecursiveCount == 1) 223var childToConsolidate = nodeToConsolidate.Children.Values.MaxBy(static r => r.ActiveWatchersRecursiveCount); 225if (childToConsolidate is not null && childToConsolidate.ActiveWatchersRecursiveCount > 1) 286else if (child.ActiveWatchersRecursiveCount > 0) 354Contract.ThrowIfTrue(node.ActiveWatchersRecursiveCount < 0); 437currentWatcherCountPerRoots += root.ActiveWatchersRecursiveCount;