1 instantiation of FileChangeContext
Microsoft.CodeAnalysis.LanguageServer (1)
HostWorkspace\FileWatching\DefaultFileChangeWatcher.cs (1)
48
=> new
FileChangeContext
(this, watchedDirectories);
14 references to FileChangeContext
Microsoft.CodeAnalysis.LanguageServer (12)
HostWorkspace\FileWatching\DefaultFileChangeWatcher.cs (10)
50
private IDisposable AcquireDirectoryWatch(WatchedDirectory watchedDirectory,
FileChangeContext
fileChangeContext)
151
private void ReleaseWatch(DirectoryNode node,
FileChangeContext
fileChangeContext)
234
var activeContexts = ImmutableArray.CreateBuilder<
FileChangeContext
>(initialCapacity: nodeToConsolidate.ActiveContextsRecursiveCount);
259
private void RemoveWatchersFromChildrenForConsolidation_NoLock(DirectoryNode node, ref IList<string>? filters, ImmutableArray<
FileChangeContext
>.Builder activeContexts)
282
child.ActiveContexts = ImmutableArray<
FileChangeContext
>.Empty;
316
public ImmutableArray<
FileChangeContext
> ActiveContexts { get; set; } = ImmutableArray<
FileChangeContext
>.Empty;
374
foreach (
var
activeContext in activeContexts)
386
private readonly
FileChangeContext
_fileChangeContext;
388
public DirectoryWatch(DefaultFileChangeWatcher owner, DirectoryNode node,
FileChangeContext
fileChangeContext)
HostWorkspace\FileWatching\DefaultFileChangeWatcher.FileChangeContext.cs (2)
32
/// return from <see cref="DefaultFileChangeWatcher.AcquireDirectoryWatch(WatchedDirectory,
FileChangeContext
)"/> when it was called for the first time.
156
private sealed class ExplicitlyWatchedFile(
FileChangeContext
context, string filePath) : IWatchedFile
Microsoft.CodeAnalysis.LanguageServer.UnitTests (2)
DefaultFileChangeWatcherTests.cs (2)
626
var
fileChangeContext = (DefaultFileChangeWatcher.
FileChangeContext
)context;