1 instantiation of Context
Microsoft.VisualStudio.LanguageServices (1)
ProjectSystem\FileChangeWatcher.cs (1)
89
=> new
Context
(this, watchedDirectories);
16 references to Context
Microsoft.VisualStudio.LanguageServices (16)
ProjectSystem\FileChangeWatcher.cs (16)
126
/// references an instance held by the <see cref="
Context
"/> class, and the values are lazily read when
132
/// A collection of file watcher tokens. The <see cref="
Context
.RegularWatchedFile.Cookie"/> field is
136
private readonly OneOrMany<
Context
.RegularWatchedFile> _tokens;
156
_tokens = OneOrMany<
Context
.RegularWatchedFile>.Empty;
159
private WatcherOperation(Kind kind, OneOrMany<string> files, _VSFILECHANGEFLAGS fileChangeFlags, IVsFreeThreadedFileChangeEvents2 sink, OneOrMany<
Context
.RegularWatchedFile> tokens)
185
_tokens = OneOrMany<
Context
.RegularWatchedFile>.Empty;
189
private WatcherOperation(Kind kind, OneOrMany<
Context
.RegularWatchedFile> tokens)
215
public static WatcherOperation WatchFile(string path, _VSFILECHANGEFLAGS fileChangeFlags, IVsFreeThreadedFileChangeEvents2 sink,
Context
.RegularWatchedFile token)
218
public static WatcherOperation WatchFiles(ImmutableArray<string> files, _VSFILECHANGEFLAGS fileChangeFlags, IVsFreeThreadedFileChangeEvents2 sink, ImmutableArray<
Context
.RegularWatchedFile> tokens)
219
=> new(Kind.WatchFiles, new OneOrMany<string>(files), fileChangeFlags, sink, new OneOrMany<
Context
.RegularWatchedFile>(tokens));
224
public static WatcherOperation UnwatchFiles(ImmutableArray<
Context
.RegularWatchedFile> tokens)
225
=> new(Kind.UnwatchFiles, new OneOrMany<
Context
.RegularWatchedFile>(tokens));
227
public static WatcherOperation UnwatchFile(
Context
.RegularWatchedFile token)
245
using var _1 = ArrayBuilder<
Context
.RegularWatchedFile>.GetInstance(out var tokensBuilder);
480
public RegularWatchedFile(
Context
context)
485
private readonly
Context
_context;