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