7 references to _watchedFiles
Microsoft.CodeAnalysis.LanguageServer (7)
HostWorkspace\FileWatching\LspFileChangeWatcher.cs (7)
57/// A lock to guard updates to <see cref="_watchedFiles" />. Using a reader/writer lock since file change notifications can be pretty chatty 110isFileWatched = _watchedFiles.ContainsKey(filePath); 136_watchedFiles.TryGetValue(filePath, out var existingWatches); 137_watchedFiles[filePath] = existingWatches + 1; 158var existingWatches = _watchedFiles[filePath]; 160_watchedFiles.Remove(filePath); 162_watchedFiles[filePath] = existingWatches - 1;