2 instantiations of FileChangeTracker
Microsoft.VisualStudio.LanguageServices (2)
AnalyzerDependency\AnalyzerFileWatcherService.cs (1)
98
tracker = new
FileChangeTracker
(_fileChangeService, filePath);
ProjectSystem\VisualStudioAddSolutionItemService.cs (1)
66
var tracker = new
FileChangeTracker
(_fileChangeService, filePath, _VSFILECHANGEFLAGS.VSFILECHG_Add);
18 references to FileChangeTracker
Microsoft.VisualStudio.LanguageServices (18)
AnalyzerDependency\AnalyzerFileWatcherService.cs (5)
30
private 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.
96
if (!_fileChangeTrackers.TryGetValue(filePath, out
var
tracker))
142
var
tracker = (
FileChangeTracker
)sender;
ProjectSystem\FileChangeTracker.cs (2)
105
throw new ObjectDisposedException(nameof(
FileChangeTracker
));
159
throw new ObjectDisposedException(nameof(
FileChangeTracker
));
ProjectSystem\FileChangeWatcher.cs (3)
463
if ((fileChangeFlags &
FileChangeTracker
.DefaultFileChangeFlags) == 0)
495
if ((fileChangeFlags &
FileChangeTracker
.DefaultFileChangeFlags) == 0)
557
if ((fileChangeFlags &
FileChangeTracker
.DefaultFileChangeFlags) == 0)
ProjectSystem\MetadataReferences\VisualStudioMetadataReference.Snapshot.cs (2)
42
private readonly
FileChangeTracker
_fileChangeTrackerOpt;
44
internal Snapshot(VisualStudioMetadataReferenceManager provider, MetadataReferenceProperties properties, string fullPath,
FileChangeTracker
fileChangeTrackerOpt)
ProjectSystem\VisualStudioAddSolutionItemService.cs (6)
30
private readonly ConcurrentDictionary<string,
FileChangeTracker
> _fileChangeTrackers;
41
_fileChangeTrackers = new ConcurrentDictionary<string,
FileChangeTracker
>(StringComparer.OrdinalIgnoreCase);
64
FileChangeTracker
CreateTracker(string filePath)
66
var
tracker = new FileChangeTracker(_fileChangeService, filePath, _VSFILECHANGEFLAGS.VSFILECHG_Add);
75
var
tracker = (
FileChangeTracker
)sender;