2 writes to _watcher
Microsoft.CodeAnalysis.LanguageServer (2)
HostWorkspace\FileWatching\SimpleFileChangeWatcher.cs (2)
107_watcher = new FileSystemWatcher(directoryPath, Path.GetFileName(filePath)); 119_watcher = null;
12 references to _watcher
Microsoft.CodeAnalysis.LanguageServer (12)
HostWorkspace\FileWatching\SimpleFileChangeWatcher.cs (12)
108_watcher.IncludeSubdirectories = false; 110_watcher.Changed += _context.RaiseEvent; 111_watcher.Created += _context.RaiseEvent; 112_watcher.Deleted += _context.RaiseEvent; 113_watcher.Renamed += _context.RaiseEvent; 115_watcher.EnableRaisingEvents = true; 125if (_context._individualWatchedFiles.Remove(this) && _watcher != null) 127_watcher.Changed -= _context.RaiseEvent; 128_watcher.Created -= _context.RaiseEvent; 129_watcher.Deleted -= _context.RaiseEvent; 130_watcher.Renamed -= _context.RaiseEvent; 131_watcher.Dispose();