4 implementations of IWatchedFile
Microsoft.CodeAnalysis.LanguageServer (2)
HostWorkspace\FileWatching\DefaultFileChangeWatcher.FileChangeContext.cs (1)
102private sealed class IndividualWatchedFile : IWatchedFile, IEventRaiser
HostWorkspace\FileWatching\LspFileChangeWatcher.cs (1)
177private sealed class WatchedFile : IWatchedFile
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\ProjectSystem\IFileChangeWatcher.cs (1)
101internal sealed class NoOpWatchedFile : IWatchedFile
Microsoft.VisualStudio.LanguageServices (1)
ProjectSystem\FileChangeWatcher.cs (1)
478public sealed class RegularWatchedFile : IWatchedFile
29 references to IWatchedFile
Microsoft.CodeAnalysis.LanguageServer (3)
HostWorkspace\FileWatching\DefaultFileChangeWatcher.FileChangeContext.cs (1)
78public IWatchedFile EnqueueWatchingFile(string filePath)
HostWorkspace\FileWatching\LspFileChangeWatcher.cs (1)
138public IWatchedFile EnqueueWatchingFile(string filePath)
HostWorkspace\LoadedProject.cs (1)
39private IWatchedFile? _mostRecentProjectAssetsFileWatcher;
Microsoft.CodeAnalysis.LanguageServer.UnitTests (20)
DefaultFileChangeWatcherTests.cs (19)
75var watchedFile = context.EnqueueWatchingFile(filePath); 90using var watchedFile = context.EnqueueWatchingFile(filePath); 104using var watchedFile = context.EnqueueWatchingFile(filePath); 118using var watchedFile = context.EnqueueWatchingFile(filePath); 133using var watcher1 = context.EnqueueWatchingFile(filePath); 134using var watcher2 = context.EnqueueWatchingFile(filePath); 151using var watchedFile = context.EnqueueWatchingFile(filePath); 166using var watchedFile = context.EnqueueWatchingFile(nonExistentPath); 181using var csWatcher = context.EnqueueWatchingFile(csFilePath); 182using var vbWatcher = context.EnqueueWatchingFile(vbFilePath); 183using var txtWatcher = context.EnqueueWatchingFile(txtFilePath); 204using var watchedFile = context.EnqueueWatchingFile(filePath); 220using var watchedFile = context.EnqueueWatchingFile(filePath); 235using var watchedFile = context.EnqueueWatchingFile(filePath); 250using var watcher1 = context.EnqueueWatchingFile(filePath); 253using var watcher2 = context.EnqueueWatchingFile(filePath); 422using var watchedFile = context.EnqueueWatchingFile(filePath); 447using var watchedFile = context.EnqueueWatchingFile(filePath); 471var watchedFile = context.EnqueueWatchingFile(filePath);
LspFileChangeWatcherTests.cs (1)
91var watchedFile = context.EnqueueWatchingFile("Z:\\SingleFile.txt");
Microsoft.CodeAnalysis.Workspaces (5)
Workspace\ProjectSystem\FileWatchedPortableExecutableReferenceFactory.cs (2)
37private readonly Dictionary<string, (IWatchedFile Token, int RefCount)> _referenceFileWatchingTokens = []; 128var fileToken = _fileReferenceChangeContext.Value.EnqueueWatchingFile(fullFilePath);
Workspace\ProjectSystem\IFileChangeWatcher.cs (2)
90IWatchedFile EnqueueWatchingFile(string filePath); 103public static readonly IWatchedFile Instance = new NoOpWatchedFile();
Workspace\ProjectSystem\ProjectSystemProject.cs (1)
105private readonly Dictionary<DocumentId, IWatchedFile> _documentWatchedFiles = [];
Microsoft.VisualStudio.LanguageServices (1)
ProjectSystem\FileChangeWatcher.cs (1)
393public IWatchedFile EnqueueWatchingFile(string filePath)