3 implementations of IFileChangeContext
Microsoft.CodeAnalysis.LanguageServer (2)
HostWorkspace\FileWatching\DefaultFileChangeWatcher.FileChangeContext.cs (1)
22
internal sealed class FileChangeContext :
IFileChangeContext
, IEventRaiser
HostWorkspace\FileWatching\LspFileChangeWatcher.cs (1)
47
private sealed class FileChangeContext :
IFileChangeContext
Microsoft.VisualStudio.LanguageServices (1)
ProjectSystem\FileChangeWatcher.cs (1)
339
private sealed class Context : IVsFreeThreadedFileChangeEvents2,
IFileChangeContext
58 references to IFileChangeContext
Microsoft.CodeAnalysis.LanguageServer (6)
HostWorkspace\FileWatching\DefaultFileChangeWatcher.cs (1)
32
public
IFileChangeContext
CreateContext(ImmutableArray<WatchedDirectory> watchedDirectories)
HostWorkspace\FileWatching\DelegatingFileChangeWatcher.cs (1)
44
public
IFileChangeContext
CreateContext(ImmutableArray<WatchedDirectory> watchedDirectories)
HostWorkspace\FileWatching\LspFileChangeWatcher.cs (1)
44
public
IFileChangeContext
CreateContext(ImmutableArray<WatchedDirectory> watchedDirectories)
HostWorkspace\LoadedProject.cs (3)
26
private readonly
IFileChangeContext
_sourceFileChangeContext;
27
private readonly
IFileChangeContext
_projectFileChangeContext;
28
private readonly
IFileChangeContext
_assetsFileChangeContext;
Microsoft.CodeAnalysis.LanguageServer.UnitTests (40)
DefaultFileChangeWatcherTests.cs (38)
23
using
var
context = watcher.CreateContext([]);
34
using
var
context = watcher.CreateContext([new WatchedDirectory(tempDirectory.Path, extensionFilters: [])]);
45
using
var
context = watcher.CreateContext([new WatchedDirectory(nonExistentPath, extensionFilters: [])]);
59
using
var
context = watcher.CreateContext([
74
using
var
context = watcher.CreateContext([new WatchedDirectory(tempDirectory.Path, extensionFilters: [".cs"])]);
89
using
var
context = watcher.CreateContext([new WatchedDirectory(watchedDir.Path, extensionFilters: [])]);
103
using
var
context = watcher.CreateContext([new WatchedDirectory(tempDirectory.Path, extensionFilters: [".cs"])]);
117
using
var
context = watcher.CreateContext([new WatchedDirectory(tempDirectory.Path, extensionFilters: [".cs"])]);
131
using
var
context = watcher.CreateContext([]);
150
using
var
context = watcher.CreateContext([new WatchedDirectory(tempDirectory.Path, extensionFilters: [])]);
163
using
var
context = watcher.CreateContext([]);
179
using
var
context = watcher.CreateContext([new WatchedDirectory(tempDirectory.Path, extensionFilters: [".cs", ".vb"])]);
203
using
var
context = watcher.CreateContext([new WatchedDirectory(tempDirectory.Path, extensionFilters: [".cs"])]);
219
using
var
context = watcher.CreateContext([new WatchedDirectory(watchedDir.Path, extensionFilters: [])]);
234
using
var
context = watcher.CreateContext([new WatchedDirectory(watchedDir.Path, extensionFilters: [])]);
248
using
var
context = watcher.CreateContext([]);
295
using
var
context = watcher.CreateContext([new WatchedDirectory(tempDirectory.Path, extensionFilters: [])]);
317
using
var
context = watcher.CreateContext([new WatchedDirectory(tempDirectory.Path, extensionFilters: [])]);
339
using
var
context = watcher.CreateContext([new WatchedDirectory(tempDirectory.Path, extensionFilters: [])]);
358
using
var
context = watcher.CreateContext([new WatchedDirectory(tempDirectory.Path, extensionFilters: [".cs"])]);
378
using
var
context = watcher.CreateContext([new WatchedDirectory(tempDirectory.Path, extensionFilters: [".cs"])]);
398
using
var
context = watcher.CreateContext([new WatchedDirectory(tempDirectory.Path, extensionFilters: [])]);
418
using
var
context = watcher.CreateContext([]);
444
using
var
context = watcher.CreateContext([]);
466
using
var
context = watcher.CreateContext([]);
492
using
var
context = watcher.CreateContext([new WatchedDirectory(tempDirectory.Path, extensionFilters: [])]);
529
using
var
context = watcher.CreateContext([new WatchedDirectory(tempDirectory.Path, extensionFilters: [])]);
552
using
var
context = watcher.CreateContext([new WatchedDirectory(tempDirectory.Path, extensionFilters: [])]);
574
using
var
context1 = watcher.CreateContext([new WatchedDirectory(tempDirectory.Path, extensionFilters: [])]);
575
using
var
context2 = watcher.CreateContext([new WatchedDirectory(tempDirectory.Path, extensionFilters: [".cs"])]);
591
var
context1 = watcher.CreateContext([new WatchedDirectory(tempDirectory.Path, extensionFilters: [])]);
592
var
context2 = watcher.CreateContext([new WatchedDirectory(tempDirectory.Path, extensionFilters: [".cs"])]);
617
using
var
context1 = watcher.CreateContext([new WatchedDirectory(tempDirectory.Path, extensionFilters: [])]);
618
using
var
context2 = watcher.CreateContext([new WatchedDirectory(tempDirectory.Path, extensionFilters: [".cs"])]);
642
var
context1 = watcher.CreateContext([new WatchedDirectory(tempDirectory.Path, extensionFilters: [])]);
643
using
var
context2 = watcher.CreateContext([new WatchedDirectory(tempDirectory.Path, extensionFilters: [".cs"])]);
670
var
context1 = watcher.CreateContext([new WatchedDirectory(tempDirectory.Path, extensionFilters: [])]);
676
using
var
context2 = watcher.CreateContext([new WatchedDirectory(tempDirectory.Path, extensionFilters: [])]);
LspFileChangeWatcherTests.cs (2)
60
var
context = lspFileChangeWatcher.CreateContext([new ProjectSystem.WatchedDirectory(tempDirectory.Path, extensionFilters: [])]);
90
var
context = lspFileChangeWatcher.CreateContext([]);
Microsoft.CodeAnalysis.Workspaces (9)
Workspace\ProjectSystem\FileWatchedPortableExecutableReferenceFactory.cs (3)
30
private readonly Lazy<
IFileChangeContext
> _fileReferenceChangeContext;
67
_fileReferenceChangeContext = new Lazy<
IFileChangeContext
>(() =>
69
var
fileReferenceChangeContext = fileChangeWatcher.CreateContext(GetAdditionalWatchedDirectories());
Workspace\ProjectSystem\IFileChangeWatcher.cs (5)
13
IFileChangeContext
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)
111
private 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.
88
public
IFileChangeContext
CreateContext(ImmutableArray<WatchedDirectory> watchedDirectories)
ProjectSystem\RuleSets\VisualStudioRuleSetManager.RuleSetFile.cs (1)
26
private
IFileChangeContext
_fileChangeContext;