3 implementations of IFileChangeContext
Microsoft.CodeAnalysis.LanguageServer (2)
HostWorkspace\FileWatching\LspFileChangeWatcher.cs (1)
47private sealed class FileChangeContext : IFileChangeContext
HostWorkspace\FileWatching\SimpleFileChangeWatcher.cs (1)
23private sealed class FileChangeContext : IFileChangeContext
Microsoft.VisualStudio.LanguageServices (1)
ProjectSystem\FileChangeWatcher.cs (1)
339private sealed class Context : IVsFreeThreadedFileChangeEvents2, IFileChangeContext
19 references to IFileChangeContext
Microsoft.CodeAnalysis.LanguageServer (5)
HostWorkspace\FileWatching\DelegatingFileChangeWatcher.cs (1)
44public IFileChangeContext CreateContext(ImmutableArray<WatchedDirectory> watchedDirectories)
HostWorkspace\FileWatching\LspFileChangeWatcher.cs (1)
44public IFileChangeContext CreateContext(ImmutableArray<WatchedDirectory> watchedDirectories)
HostWorkspace\FileWatching\SimpleFileChangeWatcher.cs (1)
20public IFileChangeContext CreateContext(ImmutableArray<WatchedDirectory> watchedDirectories)
HostWorkspace\LoadedProject.cs (2)
30private readonly IFileChangeContext _sourceFileChangeContext; 31private readonly IFileChangeContext _projectFileChangeContext;
Microsoft.CodeAnalysis.LanguageServer.UnitTests (2)
LspFileChangeWatcherTests.cs (2)
60var context = lspFileChangeWatcher.CreateContext([new ProjectSystem.WatchedDirectory(tempDirectory.Path, extensionFilters: [])]); 90var context = lspFileChangeWatcher.CreateContext([]);
Microsoft.CodeAnalysis.Workspaces (9)
Workspace\ProjectSystem\FileWatchedPortableExecutableReferenceFactory.cs (3)
30private readonly Lazy<IFileChangeContext> _fileReferenceChangeContext; 67_fileReferenceChangeContext = new Lazy<IFileChangeContext>(() => 69var fileReferenceChangeContext = fileChangeWatcher.CreateContext(GetAdditionalWatchedDirectories());
Workspace\ProjectSystem\IFileChangeWatcher.cs (5)
13IFileChangeContext CreateContext(ImmutableArray<WatchedDirectory> watchedDirectories); 17/// Gives a hint to the <see cref="IFileChangeContext"/> that we should watch a top-level directory for all changes in addition 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)" /> 82/// file in the directory if the <see cref="IFileChangeContext"/> was watching a directory.
Workspace\ProjectSystem\ProjectSystemProject.cs (1)
111private readonly IFileChangeContext _documentFileChangeContext;
Microsoft.VisualStudio.LanguageServices (3)
ProjectSystem\FileChangeWatcher.cs (2)
26/// an <see cref="IFileChangeContext"/> which lets you add/remove files being watched, and an event is raised when a file is modified. 88public IFileChangeContext CreateContext(ImmutableArray<WatchedDirectory> watchedDirectories)
ProjectSystem\RuleSets\VisualStudioRuleSetManager.RuleSetFile.cs (1)
26private IFileChangeContext _fileChangeContext;