1 instantiation of RegularWatchedFile
Microsoft.VisualStudio.LanguageServices (1)
ProjectSystem\FileChangeWatcher.cs (1)
398
var token = new
RegularWatchedFile
(this);
17 references to RegularWatchedFile
Microsoft.VisualStudio.LanguageServices (17)
ProjectSystem\FileChangeWatcher.cs (17)
131
/// A collection of file watcher tokens. The <see cref="Context.
RegularWatchedFile
.Cookie"/> field is
135
private readonly OneOrMany<Context.
RegularWatchedFile
> _tokens;
155
_tokens = OneOrMany<Context.
RegularWatchedFile
>.Empty;
158
private WatcherOperation(Kind kind, OneOrMany<string> files, _VSFILECHANGEFLAGS fileChangeFlags, IVsFreeThreadedFileChangeEvents2 sink, OneOrMany<Context.
RegularWatchedFile
> tokens)
184
_tokens = OneOrMany<Context.
RegularWatchedFile
>.Empty;
188
private WatcherOperation(Kind kind, OneOrMany<Context.
RegularWatchedFile
> tokens)
214
public static WatcherOperation WatchFile(string path, _VSFILECHANGEFLAGS fileChangeFlags, IVsFreeThreadedFileChangeEvents2 sink, Context.
RegularWatchedFile
token)
217
public static WatcherOperation WatchFiles(ImmutableArray<string> files, _VSFILECHANGEFLAGS fileChangeFlags, IVsFreeThreadedFileChangeEvents2 sink, ImmutableArray<Context.
RegularWatchedFile
> tokens)
218
=> new(Kind.WatchFiles, new OneOrMany<string>(files), fileChangeFlags, sink, new OneOrMany<Context.
RegularWatchedFile
>(tokens));
223
public static WatcherOperation UnwatchFiles(ImmutableArray<Context.
RegularWatchedFile
> tokens)
224
=> new(Kind.UnwatchFiles, new OneOrMany<Context.
RegularWatchedFile
>(tokens));
226
public static WatcherOperation UnwatchFile(Context.
RegularWatchedFile
token)
244
using var _1 = ArrayBuilder<Context.
RegularWatchedFile
>.GetInstance(out var tokensBuilder);
344
/// Gate to guard mutable fields in this class and any mutation of any <see cref="
RegularWatchedFile
"/>s.
348
private readonly HashSet<
RegularWatchedFile
> _activeFileWatchingTokens = [];
398
var
token = new RegularWatchedFile(this);
410
private void StopWatchingFile(
RegularWatchedFile
watchedFile)