3 implementations of EnqueueWatchingFile
Microsoft.CodeAnalysis.LanguageServer (2)
HostWorkspace\FileWatching\DefaultFileChangeWatcher.FileChangeContext.cs (1)
52public IWatchedFile EnqueueWatchingFile(string filePath)
HostWorkspace\FileWatching\LspFileChangeWatcher.cs (1)
138public IWatchedFile EnqueueWatchingFile(string filePath)
Microsoft.VisualStudio.LanguageServices (1)
ProjectSystem\FileChangeWatcher.cs (1)
393public IWatchedFile EnqueueWatchingFile(string filePath)
38 references to EnqueueWatchingFile
Microsoft.CodeAnalysis.LanguageServer (1)
HostWorkspace\LoadedProject.cs (1)
67_projectFileChangeContext.EnqueueWatchingFile(_projectFilePath);
Microsoft.CodeAnalysis.LanguageServer.UnitTests (31)
DefaultFileChangeWatcherTests.cs (30)
123using var watchedFile = context.EnqueueWatchingFile(filePath); 138using var watchedFile = context.EnqueueWatchingFile(filePath); 153using var watchedFile = context.EnqueueWatchingFile(filePath); 167using var watchedFile = context.EnqueueWatchingFile(filePath); 183using var watchedFile1 = context.EnqueueWatchingFile(Path.Combine(tempDirectory.Path, "a.cs")); 184using var watchedFile2 = context.EnqueueWatchingFile(Path.Combine(tempDirectory.Path, "b.cs")); 204using var watcher1 = context.EnqueueWatchingFile(filePath); 205using var watcher2 = context.EnqueueWatchingFile(filePath); 222using var watchedFile = context.EnqueueWatchingFile(filePath); 235using var watchedFile = context.EnqueueWatchingFile(nonExistentPath); 250using var csWatcher = context.EnqueueWatchingFile(csFilePath); 251using var vbWatcher = context.EnqueueWatchingFile(vbFilePath); 252using var txtWatcher = context.EnqueueWatchingFile(txtFilePath); 273using var watchedFile = context.EnqueueWatchingFile(filePath); 289using var watchedFile = context.EnqueueWatchingFile(filePath); 304using var watchedFile = context.EnqueueWatchingFile(filePath); 319using var watcher1 = context.EnqueueWatchingFile(filePath); 322using var watcher2 = context.EnqueueWatchingFile(filePath); 341context.EnqueueWatchingFile(Path.Combine(seed.Path, "seed.cs")); 344context.EnqueueWatchingFile(Path.Combine(pairA.Path, "one.cs")); 345context.EnqueueWatchingFile(Path.Combine(pairB.Path, "two.cs")); 346context.EnqueueWatchingFile(Path.Combine(other.Path, "three.cs")); 365var file1 = context1.EnqueueWatchingFile(Path.Combine(root.Path, "extra.txt")); 366var file2 = context2.EnqueueWatchingFile(Path.Combine(root.Path, "extra2.log")); 387_ = context.EnqueueWatchingFile(Path.Combine(root.Path, "extra.txt")); 443context.EnqueueWatchingFile(filePath); 559using var watchedFile = context.EnqueueWatchingFile(filePath); 582using var watchedFile = context.EnqueueWatchingFile(filePath); 630var watchedFile = context.EnqueueWatchingFile(filePath); 688using var watchedFile = context.EnqueueWatchingFile(filePath);
LspFileChangeWatcherTests.cs (1)
92var watchedFile = context.EnqueueWatchingFile(filePath);
Microsoft.CodeAnalysis.Workspaces (5)
Workspace\ProjectSystem\FileWatchedPortableExecutableReferenceFactory.cs (1)
120var fileToken = _fileReferenceChangeContext.Value.EnqueueWatchingFile(fullFilePath);
Workspace\ProjectSystem\IFileChangeWatcher.cs (3)
18/// to any files called by <see cref="IFileChangeContext.EnqueueWatchingFile(string)"/>. 21/// This is largely intended as an optimization; consumers should still call <see cref="IFileChangeContext.EnqueueWatchingFile(string)" /> 81/// Raised when a file has been changed. This may be a file watched explicitly by <see cref="EnqueueWatchingFile(string)"/> or it could be any
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (1)
127_project._documentWatchedFiles.Add(documentId, _project._documentFileChangeContext.EnqueueWatchingFile(fullPath));
Microsoft.VisualStudio.LanguageServices (1)
ProjectSystem\RuleSets\VisualStudioRuleSetManager.RuleSetFile.cs (1)
74_fileChangeContext.EnqueueWatchingFile(include);