7 references to _watchedFiles
Microsoft.CodeAnalysis.LanguageServer (7)
HostWorkspace\FileWatching\LspFileChangeWatcher.cs (7)
58/// A lock to guard updates to <see cref="_watchedFiles" />. Using a reader/writer lock since file change notifications can be pretty chatty 121isFileWatched = _watchedFiles.ContainsKey(filePath); 147_watchedFiles.TryGetValue(filePath, out var existingWatches); 148_watchedFiles[filePath] = existingWatches + 1; 169var existingWatches = _watchedFiles[filePath]; 171_watchedFiles.Remove(filePath); 173_watchedFiles[filePath] = existingWatches - 1;