2 instantiations of FileChangeTracker
Microsoft.VisualStudio.LanguageServices (2)
AnalyzerDependency\AnalyzerFileWatcherService.cs (1)
98tracker = new FileChangeTracker(_fileChangeService, filePath);
ProjectSystem\VisualStudioAddSolutionItemService.cs (1)
66var tracker = new FileChangeTracker(_fileChangeService, filePath, _VSFILECHANGEFLAGS.VSFILECHG_Add);
18 references to FileChangeTracker
Microsoft.VisualStudio.LanguageServices (18)
AnalyzerDependency\AnalyzerFileWatcherService.cs (5)
30private readonly Dictionary<string, FileChangeTracker> _fileChangeTrackers = new(StringComparer.OrdinalIgnoreCase); 33/// Holds a list of assembly modified times that we can use to detect a file change prior to the <see cref="FileChangeTracker"/> being in place. 96if (!_fileChangeTrackers.TryGetValue(filePath, out var tracker)) 142var tracker = (FileChangeTracker)sender;
ProjectSystem\FileChangeTracker.cs (2)
105throw new ObjectDisposedException(nameof(FileChangeTracker)); 159throw new ObjectDisposedException(nameof(FileChangeTracker));
ProjectSystem\FileChangeWatcher.cs (3)
463if ((fileChangeFlags & FileChangeTracker.DefaultFileChangeFlags) == 0) 495if ((fileChangeFlags & FileChangeTracker.DefaultFileChangeFlags) == 0) 557if ((fileChangeFlags & FileChangeTracker.DefaultFileChangeFlags) == 0)
ProjectSystem\MetadataReferences\VisualStudioMetadataReference.Snapshot.cs (2)
42private readonly FileChangeTracker _fileChangeTrackerOpt; 44internal Snapshot(VisualStudioMetadataReferenceManager provider, MetadataReferenceProperties properties, string fullPath, FileChangeTracker fileChangeTrackerOpt)
ProjectSystem\VisualStudioAddSolutionItemService.cs (6)
30private readonly ConcurrentDictionary<string, FileChangeTracker> _fileChangeTrackers; 41_fileChangeTrackers = new ConcurrentDictionary<string, FileChangeTracker>(StringComparer.OrdinalIgnoreCase); 64FileChangeTracker CreateTracker(string filePath) 66var tracker = new FileChangeTracker(_fileChangeService, filePath, _VSFILECHANGEFLAGS.VSFILECHG_Add); 75var tracker = (FileChangeTracker)sender;