2 writes to Watcher
Microsoft.CodeAnalysis.LanguageServer (2)
HostWorkspace\FileWatching\DefaultFileChangeWatcher.cs (2)
334Watcher = new FileSystemWatcher(Path); 366Watcher = null;
24 references to Watcher
Microsoft.CodeAnalysis.LanguageServer (24)
HostWorkspace\FileWatching\DefaultFileChangeWatcher.cs (24)
77if (node.Watcher is not null) 82ExpandFiltersToCover(node.Watcher.Filters, watchedDirectory.ExtensionFilters.SelectAsArray(static extension => '*' + extension)); 102if (node.Watcher is not null) 105ExpandFiltersToCover(node.Watcher.Filters, watchedDirectory.ExtensionFilters.SelectAsArray(static extension => '*' + extension)); 125IList<string>? filters = parentNodeForWatch.Watcher.Filters; 129Contract.ThrowIfFalse(filters == parentNodeForWatch.Watcher.Filters, "We should have been updating the existing list of filters."); 171if (current.Watcher is not null) 265if (child.Watcher is not null) 274filters = new List<string>(child.Watcher.Filters); 278ExpandFiltersToCover(filters, [.. child.Watcher.Filters]); 324/// The total number of <see cref="Watcher"/> in this node and all child nodes. 328[MemberNotNull(nameof(Watcher))] 331Contract.ThrowIfTrue(Watcher is not null); 335Watcher.Filters.AddRange(filters); 337Watcher.Created += OnFileSystemWatcherEvent; 338Watcher.Changed += OnFileSystemWatcherEvent; 339Watcher.Renamed += OnFileSystemWatcherEvent; 340Watcher.Deleted += OnFileSystemWatcherEvent; 342Watcher.IncludeSubdirectories = true; 343Watcher.EnableRaisingEvents = true; 362Contract.ThrowIfNull(Watcher); 365Watcher.Dispose(); 448if (node.Watcher is not null) 449paths.Add((node.Path, node.Watcher.Filters.ToImmutableArray()));