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 120isFileWatched = _watchedFiles.ContainsKey(filePath); 146_watchedFiles.TryGetValue(filePath, out var existingWatches); 147_watchedFiles[filePath] = existingWatches + 1; 168var existingWatches = _watchedFiles[filePath]; 170_watchedFiles.Remove(filePath); 172_watchedFiles[filePath] = existingWatches - 1;