6 writes to ActiveContexts
Microsoft.CodeAnalysis.LanguageServer (6)
HostWorkspace\FileWatching\DefaultFileChangeWatcher.cs (6)
83node.ActiveContexts = node.ActiveContexts.Add(fileChangeContext); 106node.ActiveContexts = node.ActiveContexts.Add(fileChangeContext); 131parentNodeForWatch.ActiveContexts = allActiveContextsBuilder.ToImmutable(); 163current.ActiveContexts = current.ActiveContexts.Remove(fileChangeContext); 241nodeToConsolidate.ActiveContexts = activeContexts.ToImmutable(); 282child.ActiveContexts = ImmutableArray<FileChangeContext>.Empty;
12 references to ActiveContexts
Microsoft.CodeAnalysis.LanguageServer (12)
HostWorkspace\FileWatching\DefaultFileChangeWatcher.cs (12)
33/// reporting of file changes; since <see cref="DirectoryNode.ActiveContexts"/> is an ImmutableArray we can enumerate it safely. 83node.ActiveContexts = node.ActiveContexts.Add(fileChangeContext); 106node.ActiveContexts = node.ActiveContexts.Add(fileChangeContext); 121var allActiveContextsBuilder = parentNodeForWatch.ActiveContexts.ToBuilder(); 122allActiveContextsBuilder.Capacity = parentNodeForWatch.ActiveContextsRecursiveCount - parentNodeForWatch.ActiveContexts.Length + 1; 163current.ActiveContexts = current.ActiveContexts.Remove(fileChangeContext); 168Contract.ThrowIfFalse(current.ActiveContexts.IsDefaultOrEmpty); 281activeContexts.AddRange(child.ActiveContexts); 319/// The total number of <see cref="ActiveContexts"/> in this node and all child nodes. 332Contract.ThrowIfFalse(ActiveContexts.IsEmpty); 363Contract.ThrowIfTrue(ActiveContexts.Length > 0); 373var activeContexts = ActiveContexts;