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